"Infectious block" Help

Started by Apard7 on Wed, 09/06/2017 - 06:52

Topic category: Advanced modding

Last seen on 01:21, 25. Sep 2017
Joined Aug 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
"Infectious block" Help
Wed, 09/06/2017 - 07:20 (edited)

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.

https://pastebin.com/hGjhMrST

Edited by Apard7 on Wed, 09/06/2017 - 07:20
Last seen on 19:56, 11. Aug 2019
Joined Aug 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How did you set the block to
Wed, 09/06/2017 - 13:26

How did you set the block to duplicate itself?

Last seen on 00:21, 11. Aug 2019
Joined Aug 2013
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Block#|randomDisplayTick() is
Wed, 09/06/2017 - 14:08

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.

Last seen on 20:01, 29. Jun 2020
Joined Nov 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I'm having the same problem…
Mon, 06/01/2020 - 16:06

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

Last seen on 20:01, 29. Jun 2020
Joined Nov 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Also when I exit and rejoin…
Mon, 06/01/2020 - 17:02

Also when I exit and rejoin all of the blocks return to what they were before. Plz help!