Started by
davidS
on
Topic category: Help with Minecraft modding (Java Edition)
hi how can i make a hammer that right clicking damages a 6x6 area if anyone knows how i would appreciate it?
I am using mcreator 2020.3
I am using Google Translate
This is tricky, you can create a custom block that has no texture and you can walk through, make so that on block collision it will damage the entity and destroy itself, also create a timer inside on block tick so it will destroy itself in a couple of ticks. Then on right click of your hammer it will spawn 6x6 blocks of those, it may damage the player but you can set up as IF entity not is subtype of player DO damage inside on block collision procedure, remember to mark "enable tile entity and inventory on this block"
could you explain in more detail with images or a video
it's actually super simple,
just make a function that runs the command,
execute at @e[distance=6,type=!player] run effect give @s minecraft:instant_damage 1 1 true
then make a procedure for on item right click that runs the function
:)
Why are you using commands... This is already possible in MCreator I believe, if not, super easy in custom code.
You can use;
This give you an iterable list, now to damage entities just do something similar to;
I don't know how to program and with the function it doesn't work
Oh and for the particle