Hey there! You are probably seeing my name a lot throughout the help section as I have been having a lot of questions that I wanted to be answered. You guys are awesome! So, my current issue is that I need to replace a block. Now, when I destroy a pumpkin, it destroys it and replaces it with stone, but after 40 ticks, it should go back to a pumpkin which it doesn't. Here is my code:
So, the pumpkin (86) gets replaced with stone, which is good, but the stone, after 40 ticks, doesn't replace back to a pumpkin.
(the code in the middle that looks like Bukkit Coding is one I am currently asking for help on a different thread for. If you can answer it, that would be great too!)
Thanks a lot guys!
Best of Luck,
- @LoneElf
code_language.skript:
on block break:
if event-block is a 86:
set {_newBlock} to event-block
set event-block to a 4
event-block.setCustomNameVisible(true);
event-block.setCustomName(event-block.getItemStack().getItemMeta().getDisplayName() ? "&c&lLOOTED")
wait 40 ticks
set {_newBlock} to a 86
So, the pumpkin (86) gets replaced with stone, which is good, but the stone, after 40 ticks, doesn't replace back to a pumpkin.
(the code in the middle that looks like Bukkit Coding is one I am currently asking for help on a different thread for. If you can answer it, that would be great too!)
Thanks a lot guys!
Best of Luck,
- @LoneElf