I have the first part, I just can't figure where to start with this. I'm trying to make a command that creates a new custom mineable block. We have it hardcoded currently, but a command would save a LOT of space.
This is the code I have now:
This is the code we have hardcoded in currently.
We have more, but this is the general idea.
[doublepost=1644070117,1644070080][/doublepost]Mistype in the code on my part lol
This is the code I have now:
Code:
command /newblock [<Block>} [<Name>] [<Lore>] [<Lore2]:
permission: sk.staff
triggers:
if arg-1 is block:
This is the code we have hardcoded in currently.
Code:
if event-block is oak wood:
if event-player is not holding barrier:
cancel event
set {_itemcount} to random integer between 1 and 3
give {_itemcount} of oak planks named "&6Oak Planks" to event-player
set event-block to bedrock
wait 1.5 seconds
set event-block to oak wood
[doublepost=1644070117,1644070080][/doublepost]Mistype in the code on my part lol
Code:
if event-block is oak wood:
if event-player is not holding barrier:
cancel event
set {_itemcount} to random integer between 1 and 3
give {_itemcount} of oak planks named "&6Oak Planks" to event-player
set event-block to bedrock
wait 1.5 seconds
set event-block to oak wood