Started by
MonstarNDM
on
Topic category: Help with Minecraft modding (Java Edition)
How do i can make a block move to a entity like a vacuum or sth like that plz smo help meee im suck at coding-
And yea it's just like the Wither storm mod where it absorb block or a piece of land and destroy everything
to small way to small
wat
say the witherstorm beam has a hitbox. So when the witherstorn beams hitbox is touching (blank) block depawn the block then make an entity with no ai that is a model of that block.
Go to trigger add new trigger. and go too when entity is not null. and. go block set block to entity. that block can make wither storm grab
I managed to accomplish the block sucking entity part with block displays and the /tp command. In the upcoming remaster of my old Pibby mod, I did this with the corrupted Wither Storm. Here's how the command goes:
execute at @e[type=minecraft:block_display] run tp @n[type=minecraft:block_display,limit=1] ^0.4 ^ ^0.3 facing entity @n[type=newpibbymod:wither_storm_phase_0]. This works in-game. For the blocks vanishing, it uses /kill to "kill" them when they touch the Wither Storm, thus causing them to despawn. The command above is in the Wither Storm's "on entity tick update" procedure, so put it there or else it won't work.