Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {EnderFurnaceX} = 1000000
- {EnderFurnaceY} = 200
- {EnderFurnaceZ} = 1000000
- {FurnaceLoc.%player%} = 0
- command /enderfurnace [<text>]:
- trigger:
- loop 1 times:
- if arg 1 is not set:
- #if player doesnt have a ender furnace
- if {EnderFurnace.%player%} is not set:
- set block at the location ({EnderFurnaceX}, {EnderFurnaceY}, {EnderFurnaceZ}) to furnace
- set block at the location ({EnderFurnaceX}+1, {EnderFurnaceY}, {EnderFurnaceZ}) to furnace
- set {EnderFurnace.%player%} to location of block at the location ({EnderFurnaceX}, {EnderFurnaceY}, {EnderFurnaceZ})
- if {EnderFurnaceX} is less than 1000300:
- add 3 to {EnderFurnaceX}
- else:
- set {EnderFurnaceX} to 1000300
- if {EnderFurnaceZ} is less than 1000300:
- add 2 to {EnderFurnaceZ}
- else:
- set {EnderFurnaceZ} to 1000000
- add 1 to {EnderFurnaceY}
- open the inventory of the block at {EnderFurnace.%player%} to the player
- else:
- open the inventory of the block at {EnderFurnace.%player%} to the player
- #open other player's ender furnace
- else:
- #if player already has a ender furnace
- if {EnderFurnace.%arg 1%} is set:
- open the inventory of the block at {EnderFurnace.%arg 1%} to the player
- #set a furnace at a location
- else:
- set block at the location ({EnderFurnaceX}, {EnderFurnaceY}, {EnderFurnaceZ}) to furnace
- set block at the location ({EnderFurnaceX}+1, {EnderFurnaceY}, {EnderFurnaceZ}) to furnace
- set {EnderFurnace.%arg 1%} to location of block at the location ({EnderFurnaceX}, {EnderFurnaceY}, {EnderFurnaceZ})
- if {EnderFurnaceX} is less than 1000300:
- add 3 to {EnderFurnaceX}
- else:
- set {EnderFurnaceX} to 1000300
- if {EnderFurnaceZ} is less than 1000300:
- add 2 to {EnderFurnaceZ}
- else:
- set {EnderFurnaceZ} to 1000000
- add 1 to {EnderFurnaceY}
- open the inventory of the block at {EnderFurnace.%arg 1%} to the player
- #fuel slot storage
- #on click of fuel slot:
- # broadcast "a player is trying to store item to fuel slot"
- on click on furnace:
- set {FurnaceLoc.%event-player%} to location of clicked block
- if {FurnaceLoc.%event-player%} = {BlueFurnaceLoc}:
- if {team.red.%player%} is true:
- cancel event
- make player execute command "/enderfurnace"
- message "&5This is your team's Ender Furnace. Anything you place here to be smelted will be safe from any of your teamates and enemies."
- if {FurnaceLoc.%event-player%} = {RedFurnaceLoc}:
- if {team.red.%player%} is true:
- cancel event
- make player execute command "/enderfurnace"
- message "&5This is your team's Ender Furnace. Anything you place here to be smelted will be safe from any of your teamates and enemies."
- on break of furnace:
- if location of event-block is {BlueFurnaceLoc}:
- cancel event
- if location of event-block is {RedFurnaceLoc}:
- cancel event
- on right click with any dye:
- if event-item is lapis lazuli:
- if target block is furnace:
- set event-block to {RedFurnaceLoc}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement