- check_circle Functions
- 1,168 views, 2 today
- 60 downloads, 0 today
50
Speed255 - Making Minecraft commands fun to write.
This datapack is inspired by the tailwindcss framework, aiming to provide a wealth of useful, opinionated, entity tags and functions, in order to make datapack / command block development fun and enjoyable.
For full documentation, please visit the Website as linked above.
For example: I want a permanently speedy villager. Now I can just summon in a villager like such:
With Speed255, making such a villager is a breeze:
Lets say that villager was too fast for our use cases. No worries! Lets make a new villager, now with speed 2 instead. You know what, lets give it resistance 3 as well.
What about when I want to make the villager glow only when a player is within 8 blocks of it. Easy!
Notice the prefix "..8+". This works in front of any effect tag.
But what if the villager should be poisoned if a player is not within 16 blocks of it?
Poison is considered a second class effect, and as such, for performance reasons, is kept under the "extra" effects.
This means instead of adding the tag "effects", the tag "effects-extra" should be added instead.
As for the outside of 16 blocks prefix, just move the dots to the other side of the number, like such: "16..+".
The supported distances are as such: 1, 2., 3, 4, 8, 16, 32, 64
Sometimes it is nice to have an entity that only exists in game for 1 tick. This can be useful if the entity needs to run a command, or perform an action only briefly, and without repetition. The "temp" helper tag is perfect for this, as any entity with the tag will be killed after 1 tick.
As you can see, using these default tags, provided by speed255, can make simple tasks much faster and less of a pain.
This datapack is inspired by the tailwindcss framework, aiming to provide a wealth of useful, opinionated, entity tags and functions, in order to make datapack / command block development fun and enjoyable.
For full documentation, please visit the Website as linked above.
For example: I want a permanently speedy villager. Now I can just summon in a villager like such:
summon villager ~ ~ ~ {ActiveEffects:[{Id:1b,Amplifier:5b,Duration:99999999,ShowParticles:0b}]}
With such a long duration, that villager will likely be speedy for the duration of it's existence. But that command is long and complicated. I had to use MCStacker to even generate it.With Speed255, making such a villager is a breeze:
summon villager ~ ~ ~ {Tags:["effects","speed-5"]}
Speed255 already provides a function that applies speed 5 to every entity with the tags.Lets say that villager was too fast for our use cases. No worries! Lets make a new villager, now with speed 2 instead. You know what, lets give it resistance 3 as well.
summon villager ~ ~ ~ {Tags:["effects","speed-2","resistance-3"]}
What about when I want to make the villager glow only when a player is within 8 blocks of it. Easy!
summon villager ~ ~ ~ {Tags:["effects","..8+glowing"]}
Notice the prefix "..8+". This works in front of any effect tag.
But what if the villager should be poisoned if a player is not within 16 blocks of it?
Poison is considered a second class effect, and as such, for performance reasons, is kept under the "extra" effects.
This means instead of adding the tag "effects", the tag "effects-extra" should be added instead.
As for the outside of 16 blocks prefix, just move the dots to the other side of the number, like such: "16..+".
summon villager ~ ~ ~ {Tags:["effects-extra","16..+poison-2"]}
The supported distances are as such: 1, 2., 3, 4, 8, 16, 32, 64
Sometimes it is nice to have an entity that only exists in game for 1 tick. This can be useful if the entity needs to run a command, or perform an action only briefly, and without repetition. The "temp" helper tag is perfect for this, as any entity with the tag will be killed after 1 tick.
summon villager ~ ~ ~ {Tags:["temp"]}
As you can see, using these default tags, provided by speed255, can make simple tasks much faster and less of a pain.
Compatibility | Minecraft 1.13 |
to | Minecraft 1.19 |
Tags |
2 Update Logs
v0.0.3 - Entity data : by Moxvallix 03/30/2022 10:33:20 amMar 30th, 2022
Added
- Added mkdocs based documentation.
- Added entity data tags (currently without prefix support).
- Added no-ai entity data tag.
- Added no-gravity entity data tag.
- Added invulnerable entity data tag.
- Added silent entity data tag.
LOAD MORE LOGS
tools/tracking
5526659
119
speed255
Create an account or sign in to comment.
Would it be possible to split this up into many modules so users can pick only the ones they need?
I think I might work on a mod / program that scans the datapack for used tags, and then compiles a version of the pack with only the required tags, similar to how Tailwind does it.
But yeah, currently it is not overly performant, and modules may be a good quick fix for that.