Ender pearl wind for cubfan135's golf game
by foxinatorz · 2026-09-23 · Data packs

Adds wind to throw off the trajectory of (renamed) ender pearls. Made for cubfan135's trident-golf minigame. Uses in-game time to determine wind patterns. Wind speed and direction will not change if "advance_time" gamerule is set to false. Once the datapack is installed the following command must be ran once: /function golf_wind:initialize To get an anemometer; players can run the following command while holding a compass: /trigger golf_compass If this command returns the message "You cannot trigger this objective yet", someone with command permissions has to enter the following command: /scoreboard players enable @a golf_compass Some settings can be modified as such: /data modify storage foxinatorz:golf <name> set value <value> List of settings: name: mode - determines which ender pearls are affected by wind options: "renamed" - Every renamed ender pearl affected (default) "all" - No requirement, all ender pearls affected "specific" - Only ender pearls with a specific name affected "pearl_name" - The name of affected ender pearls if mode is set to specific ("golf ball" by default) name: const.range.min - lowest possible wind speed value: a floating point number, must be less than
