Discord Thread How can i make the auro compresser turn off / on with a cmd

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

This thread came from the skUnity Discord. You can't reply to it here but if you join the skUnity Discord, you'll be able to post a reply there. The thread link is part of the thread's message.
Status
Not open for further replies.

FindME

Active Member
Jul 5, 2023
58
3
8
on step on pressure plate:
if event-block is a iron pressure plate:
if block below event-location is iron block:
set {_n} to a random integer between 1 and 25
if {_n} is 25:
set {_n} to a random integer between 26 and 75
if {_n} is 75:
set {_n} to a random integer between 76 and 100
if {_n} is between 1 and 24:
give player iron nugget named "&fIron Nugget" with lore "This is worth 1¢"
if player has 50 iron nugget named "&fIron Nugget" with lore "This is worth 1¢" in inventory:
remove 50 iron nugget named "&fIron Nugget" with lore "This is worth 1¢" from player's inventory
give 1 white dye named "&fIron Chunk" with lore "This is worth 50¢" to player
if {_n} is between 26 and 74:
give player white dye named "&fIron Chunk" with lore "This is worth 50¢"
if {_n} is between 76 and 99:
send "&fThat was a &51/1875 &fchanse to get!"
give player iron ingot named "&fIron Ingot" with lore "This is worth 20$"
if {_n} is 100:
make console execute command "/say &fSOMEONE JUST GOT A IRON BLOCK WHICH IS A &51/46875 &fCHANSE TO GET!"
give player iron block named "&fIron Block" with lore "This is worth 400$"

Posted by: cleisss from the skUnity Discord. View the thread on skUnity Discord here
 
Status
Not open for further replies.