Перейти к содержимому
Mineforgian

Golf Ball

Transform into a golf ball in Minecraft and experience realistic and configurable golfing physics!

Загрузки
349
Подписчики
4
Обновлён
8 июля 2026 г.
Лицензия
MIT

Опубликован 25 ноября 2024 г.

Golf Ball

GitHub Smithed Modrinth PMC Discord Powered by StewBeet

📺 Old datapack showcase: https://www.youtube.com/watch?v=TqVvRwF2psQ

🏌️ Golf Ball is a datapack that transforms you into a golf ball in Minecraft, offering an immersive golfing experience!
⛳ The following two commands are your best friends:

  • 🎮 /function golf_ball:summon: Turns the player executing the command into a golf ball (e.g: /execute as <player> positioned 123 100 54 run function golf_ball:summon)
  • 🔄 /function golf_ball:respawn: Rolls back the ball to the last shot position (e.g: /execute as <player> run function golf_ball:respawn)

🆕 Physics Engines (since 1.6.0)

Since Minecraft 26.2, you can alternatively summon the ball as a tiny sulfur cube holding an absorbed sponge (the vanilla "Golf Ball" archetype 🏌️) with /function golf_ball:sulfur_cube.
Bouncing, friction and air drag are then handled natively by the game through the new bounciness, friction_modifier and air_drag_modifier attributes - no per-tick physics functions!

  • ⚙️ Tune a ball's physics directly with attributes, e.g:
    /execute as <player> on vehicle run attribute @s minecraft:bounciness base set 0.9
    (same for minecraft:friction_modifier and minecraft:air_drag_modifier)
  • 🧱 Swap the absorbed block to change the ball's archetype, e.g. a "Rubber Ball":
    /execute as <player> on vehicle run item replace entity @s body with minecraft:oak_planks
  • ⚠️ Vanilla limitation: a sulfur cube holding a block has its step height hardcoded to 0, so it cannot roll up slabs or snow layers. That's why the default golf_ball:summon still uses the scoreboard physics engine (cat base) with all the settings below.

Configuration Commands ⚙️

Fine-tune your golfing experience with these powerful configuration commands!
Customize ball physics, movement dynamics, power settings and more - either globally for all new balls or locally for individual balls. 🎮

⚠️ Using /scoreboard players set for all commands below (abbreviated as /SPS)

Core Settings 🎯

Setting Global Command Local Command Default Range Description
Strength Percentage 💪 /SPS #default_strength_percentage golf_ball.data <value> /SPS @s golf_ball.strength_percentage <value> 50 0-100 Controls the overall power of your shots
Energy Loss 📉 (legacy) /SPS #default_energy_loss_percentage golf_ball.data <value> /SPS @s golf_ball.energy_loss_percentage <value> -90 -100-0 Determines how much energy is lost on impacts (vanilla balls: use the bounciness attribute)
Collision Multiplier 💥 (legacy) /SPS #default_collision_multiplier golf_ball.data <value> /SPS @s golf_ball.collision_multiplier <value> 50 0-100 Adjusts the intensity of collisions (vanilla balls are pushed natively)
Y-Shots 🔼 /SPS #default_do_y_shots golf_ball.data <value> /SPS @s golf_ball.do_y_shots <value> 0 0 or 1 Enables/disables vertical shots
Collision Detection 🎯 (legacy) /SPS #default_do_collision golf_ball.data <value> /SPS @s golf_ball.do_collision <value> 1 0 or 1 Toggles collision physics
Minimum Power ⬇️ /SPS #min_power golf_ball.data <value> N/A 40 N/A Sets the lower power limit
Maximum Power ⬆️ /SPS #max_power golf_ball.data <value> N/A 500 N/A Sets the upper power limit

Surface Friction Settings ⚡ (legacy engine only)

Control how the ball behaves on different surfaces by adjusting friction values. Each value represents the percentage of speed retained per tick.
Vanilla sulfur cube balls use the block's real friction combined with the friction_modifier attribute instead.

Surface Type Global Command Local Command Default Range Best For
Normal Friction 🔄 /SPS #k_normal golf_ball.data <value> /SPS @s golf_ball.friction_normal <value> 90 0-100 Standard terrain
Fast Friction 🏃 /SPS #k_fast golf_ball.data <value> /SPS @s golf_ball.friction_fast <value> 95 0-100 Smooth surfaces
Slippery Friction 🧊 /SPS #k_slippery golf_ball.data <value> /SPS @s golf_ball.friction_slippery <value> 98 0-100 Ice and similar
Slow Friction 🐌 /SPS #k_slow golf_ball.data <value> /SPS @s golf_ball.friction_slow <value> 85 0-100 Rough terrain
Very Slow Friction 🦥 /SPS #k_very_slow golf_ball.data <value> /SPS @s golf_ball.friction_very_slow <value> 80 0-100 Heavy resistance

Usage Tips 💡

  • 🎯 For local commands targeting a specific ball, use this format: /execute as <player> on vehicle run scoreboard players set @s golf_ball.strength_percentage <value>
  • 🎮 The "@s" selector refers to the golf ball currently being controlled by the player
  • ⚡ Surface friction values dramatically affect ball behavior - experiment to find the perfect settings!
  • 📁 View all available surface definitions in the surfaces json files
  • ⚠️ You may have fun with unrealistic configurations, but the physics will be wonky!

⭐ Star History

Star History Chart

Ченджлог

1.6.0Релиз26.2 · 8 июля 2026 г.

Changelog

Features

  • ✨ Now using the sulfur cube 5fb93f0
  • ✨ Added invulnerability enchantment 97fe651

Bug Fixes

  • 🐛 Updating to 26.2 (updated predicates) 6a5b448
  • 🐛 Introduce sulfur cube summoning and update physics handling fe5a87c

Chores

  • 🔧 Sulfur Cube adjustments c38028b

Code Refactoring

  • ♻️ Moved every static file to dynamic python files f224559
  • ♻️ Unnecessary spaces b43f7b0

Build System

  • 🚀 Bumped v1.5.0 (MC 26.2+) d808635
  • 🚀 Bumped v1.6.0 (MC 26.2+) aac1e18

Other

Full Changelog: https://github.com/Stoupy51/GolfBall/compare/v1.4.5...v1.6.0

1.4.5Релиз26.1, 26.1.1, 26.1.2 · 18 апреля 2026 г.

Changelog

Documentation

  • 📝 Add "Powered by StewBeet" badge to README 8b82d14
  • 📝 Add "Powered by StewBeet" badge to README ee17a84

Chores

  • 🔧 Updated Modrinth CD config b1a1fe0

Build System

  • 🚀 Updated to 1.21.11 (bump 1.4.5) 3c9d14d

Other

Full Changelog: https://github.com/Stoupy51/GolfBall/compare/v1.4.4...v1.4.5

1.4.4Релиз1.21.7 · 1 июля 2025 г.

Changelog

Bug Fixes

  • 🐛 Missing pack.png in zip file (f9d9735)

Build System

  • 🚀 Now using StewBeet (5d2ad35)
  • 🚀 Updated to 1.21.7 (bump 1.4.4) (c4a66dd)

Full Changelog: https://github.com/Stoupy51/GolfBall/compare/v1.4.3...v1.4.4

1.4.3Релиз1.21.5, 1.21.6 · 26 марта 2025 г.

Changelog

Bug Fixes

  • 🐛 Fixed tellraw prefix storage (99845f9)

Build System

  • 🚀 Built for 1.21.5-pre2 (07b447e)
  • 🚀 Bumped to v1.4.3, updated version references and removed deprecated functions (8705708)

Features

  • ✨ Add player size scaling (a70b6ca)

Full Changelog: https://github.com/Stoupy51/GolfBall/compare/v1.4.1...v1.4.3

1.4.1Релиз1.21.4 · 11 февраля 2025 г.

Changelog

Build System

  • 🚀 Bumped to v1.4.1 (and now using uv) (39ad50b)

Documentation

  • 📝 Added new badge (Python Datapack) (7994124)
  • 📝 Typo in README (03050a6)

Full Changelog: https://github.com/Stoupy51/GolfBall/compare/v1.4.0...v1.4.1

1.4.0Релиз1.21.2, 1.21.3 · 25 ноября 2024 г.

Changelog

Bug Fixes

Build System

  • 🚀 Now using Python Datapack (a3bbbb2)
  • 🚀 Configured upload scripts (72b2528)

Documentation

Комментарии

Загружаем…