Minecraft Data Packs / Game Mechanic

Run faster on gravel

  • check_circle Functions
  • 1,493 views, 2 today
  • 233 downloads, 0 today
  • 8
  • 9
  • 5
DahakaMVl's Avatar DahakaMVl
Level 32 : Artisan Explorer
7
Get a "Speed II" buff when walking on top of gravel blocks.

The data pack checks for gravel at player y-position -1, so you can also get the speed buff when placing half height blocks on top of the gravel.
CompatibilityMinecraft 1.16
toMinecraft 1.18
Tags

Create an account or sign in to comment.

1
02/19/2022 4:48 pm
Level 36 : Artisan Professor
NikoKun
NikoKun's Avatar
To get this working in multiplayer, change the command in fastergravelfunc.mcfunction to:
execute as @a at @s if block ~ ~-1 ~ minecraft:gravel run effect give @s minecraft:speed 1 1 true
3
12/27/2021 6:05 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 gravel, every player on the server gets speed effect
1
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
12/31/2021 6:24 amhistory
Level 1 : New Crafter
hhneri
hhneri's Avatar
You can change player/entity attributes with /attribute command. example command: /attribute @s minecraft:generic.movement_speed base set 0.05. And your gravel detection command should look like this (also fix to the multiplayer issue): /execute as @a at @s if block ~ ~-1 ~ gravel run effect give @s speed... . You can also use predicates to make the detection more accurate.
1
01/08/2022 4:03 pm
Level 1 : New Miner
Tortilladog
Tortilladog's Avatar
Has the datapack been updated to work properly with multiplayer?
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome