Started by
IGOR2012_G
on
Topic category: Help with MCreator software
I need to create a procedure that increases the speed, attack power, jump power and block destruction speed for the player who has the effect that I created
P.S. version of MCreator is 2024.2 and version of generator is 1.20.1
/attribute command could be helpful. Block breaking speed is not available in 1.20.1 though.
Use the "when effect is applied" and the "when effect expires" trigger. The first procedure (effect applied) should execute the command "/attribute @s minecraft:generic.movement_speed modifier add 1234-1234-1234-1234-1234 randomstring 0.03 add" in the name of event/target entity to change movement speed. Repeat that for other attributes (https://minecraft.wiki/w/Attribute) you want to change. Use the command "/attribute @s minecraft:generic.movement_speed modifier remove 1234-1234-1234-1234-1234" to be executed on effect ends trigger.
and the arguments of the target entity in the command should be what should be so that the effect is applied only to the entity or player who received it, because it may happen that when the effect is applied to the player all entities will become stronger and faster and it is also necessary to make it so that even if the default world settings show commands and their output in the chat I was looking for a way to do without commands
The commands executed with the Mcreator procedure block don't give any output to any player. If you don't want to use commands though, you can use the attributes plugin (https://mcreator.net/plugin/103319/attributes-nerdy-edition)