on step on pressure plate:
if event-block is a iron pressure plate:
if block below event-location is iron block:
set {_number} to a random integer between 1 and 4
if {_number} is 1:
give player iron nugget named "&fIron Nugget" with lore "This is worth 25¢"
if {_number} is 2:
give player white dye named "&fIron Chunk" with lore "This is worth 5$"
if {_number} is 3:
give player iron ingot named "&fIron Ingot" with lore "This is worth 25$"
if {_number} is 4:
give player iron nugget named "&fIron Block" with lore "This is worth 500$"
wait 1 tick
Posted by: cleisss from the skUnity Discord. View the thread on skUnity Discord here
if event-block is a iron pressure plate:
if block below event-location is iron block:
set {_number} to a random integer between 1 and 4
if {_number} is 1:
give player iron nugget named "&fIron Nugget" with lore "This is worth 25¢"
if {_number} is 2:
give player white dye named "&fIron Chunk" with lore "This is worth 5$"
if {_number} is 3:
give player iron ingot named "&fIron Ingot" with lore "This is worth 25$"
if {_number} is 4:
give player iron nugget named "&fIron Block" with lore "This is worth 500$"
wait 1 tick
Posted by: cleisss from the skUnity Discord. View the thread on skUnity Discord here