Topic category: Advanced modding
I have been attempting to create a block which, after a set amount of time, sets all blocks around it into itself, wherein the new blocks will repeat the process.
I did it, however, the blocks arn't "real". they cannot hurt or interact with the player and when the player uses /kill and respawns, they dissapear, leaving the original block where it was. Need help with that. Also, I would like to set it to "multiply" at a set time, such as every 5 seconds, but cannot figure out how.
Another problem I have that falls outside the scope of advanced modding is that item names simply display wierdly, I've looked elsewhere on this forum and couldn't find anything that would work to fix it, E.G.: item.CoriumSword.block
My code is avaliable here.
How did you set the block to duplicate itself?
Block#|randomDisplayTick() is client only method - so the action is performed only on a client side and after syncing with a server it will disappear. Use Block#randomTick() instead. Also next time please on pastebin use Java as syntaxing, not JavaScript.
I'm having the same problem. I'm trying to also make an "infectious block", but whenever I right click it or place a block on top of it it returns to it's original block. Here is what I have been using.
https://drive.google.com/file/d/1SY5eX3oZsxcwFGQhTAZWvQcXc9WFoTRq/view?usp=sharing
Also when I exit and rejoin all of the blocks return to what they were before. Plz help!