Compatibility
Minecraft: Java Edition
1.21.2â1.21.7
Platforms
Creators
Details
Golf Ball
đş 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)
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 đ | /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 |
| Collision Multiplier đĽ | /SPS #default_collision_multiplier golf_ball.data <value> |
/SPS @s golf_ball.collision_multiplier <value> |
50 | 0-100 | Adjusts the intensity of collisions |
| 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 đŻ | /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 âĄ
Control how the ball behaves on different surfaces by adjusting friction values. Each value represents the percentage of speed retained per tick.
| 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!


