Minecraft Data Packs / Game Mechanic

Run faster on grass paths

  • check_circle Functions
  • 16,428 views, 6 today
  • 5,506 downloads, 1 today
  • 46
  • 50
  • 12
DahakaMVl's Avatar DahakaMVl
Level 32 : Artisan Explorer
7
Get a "Speed II" buff when walking on top of grass path blocks.

The data pack checks whether your feet are inside a grass path block since grass path blocks are not full height.
CompatibilityMinecraft 1.16
toMinecraft 1.18
Tags

Create an account or sign in to comment.

1
02/18/2022 11:34 pmhistory
Level 36 : Artisan Professor
NikoKun
NikoKun's Avatar
FYI, I'm fairly certain the correct command to make this work in multiplayer would be:
execute as @a at @s if block ~ ~ ~ minecraft:dirt_path run effect give @s minecraft:speed 1 1 true
Doing it that way seems to work great on my server.
1
02/02/2022 3:19 pm
Level 36 : Artisan Cookie
BeckBroEYTube
BeckBroEYTube's Avatar
Make It So You Only Get Speed 1 If You're Below Half Health, Fell From A Big Height Recently, Walked On Magma Or Being In Lava Recently, And If You Are Damaged Recently You Only Get Speed 1 For 10 Seconds And Then Speed 2 After That 10 Seconds Is Over.
2
12/29/2021 4:53 pm
Level 1 : New Miner
Tortilladog
Tortilladog's Avatar
This should work with horses
2
12/27/2021 6:07 pm
Level 1 : New Crafter
hhneri
hhneri's Avatar
you can change players' attributes instead of giving them speed effect. Also you don't need to type "execute" million times in one command. And this won't work on multiplayer. If one player walks on top of grass path, every player on the server gets speed effect
1
02/09/2022 12:34 pm
Level 36 : Artisan Professor
NikoKun
NikoKun's Avatar
Wouldn't setting attributes require multiple commands to detect when the player steps both on then off the path, in order to reset the attribute to normal? Whereas just using the speed-effect can be done using one command, and can turn off after 1 second, so no need to detect stepping off path, and can be set to hide particles. heh
2
12/28/2021 5:44 am
Level 32 : Artisan Explorer
DahakaMVl
DahakaMVl's Avatar
Thanks for the feedback. :)
I'm very new to Minecraft data packs. Could you please elaborate on how I could fix it for multiplayer or any other changes I could make. Alternatively I have the GitHub page linked if you would want to submit any changes.
2
02/02/2022 9:38 pmhistory
Level 4 : Apprentice Dragon
StormDragon_64
StormDragon_64's Avatar
Here, I made a fixed version of this pack that works on multiplayer. I also changed it so that it gives you speed 1 instead of speed 2 because that is more balanced.

www.planetminecraft.com/data-pack/faster-on-paths-fixed/
2
02/02/2022 8:41 pmhistory
Level 4 : Apprentice Dragon
StormDragon_64
StormDragon_64's Avatar
Instead of executing at @a, try executing at @p.

Edit: for some reason using @p still doesn't work correctly. In my improved version of this pack, it works because I used @e[​type=something,distance=..number] because I gave the affect to any ridable entity (which I defined in a tag). While there may be better methods for this version where it only affects players, it would still work better than the current version of this datapack.
1
02/09/2022 12:51 pm
Level 36 : Artisan Professor
NikoKun
NikoKun's Avatar
I'm not sure @p works quite as intended there either. The wiki seems to suggest the right way to do it would be "execute as @a at @s if block...etc" Tho I'm still trying to find someone to test on my server. ^^;
1
12/29/2021 4:33 pm
Level 1 : New Miner
Tortilladog
Tortilladog's Avatar
You could also create a lingering cloud when someone steps on gravel that gives them speed.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome