Commit c07546c7 authored by Moesh's avatar Moesh
Browse files

Updated IDE to work with Gnasp's Smelt tool. IDE is now able to be compiled...

Updated IDE to work with Gnasp's Smelt tool. IDE is now able to be compiled and pasted into any map.
parent 3eae7d0d
......@@ -29,9 +29,9 @@ ide.menu.suggest.tag.sidebar=Sidebar
ide.menu.suggest.tag.sidebar.usage=Change global sidebar scoreboard
ide.menu.suggest.tag.tagAreaEffectCloud=Tag AEC
ide.menu.suggest.tag.tagAreaEffectCloud.usage=Suggest tag AreaEffectCloud template
ide.menu.suggest.tag.tagClosestAreaEffectCloud=Tag Closest AEC
ide.menu.suggest.tag.tagClosestAreaEffectCloud=Tag c=1 AEC
ide.menu.suggest.tag.tagClosestAreaEffectCloud.usage=Suggest tag closest AreaEffectCloud template
ide.menu.suggest.target.closestAreaEffectCloud=Target Closest AEC
ide.menu.suggest.target.closestAreaEffectCloud=Target c=1 AEC
ide.menu.suggest.target.closestAreaEffectCloud.usage=Suggest tag closest AreaEffectCloud template
......
// function print_days
/scoreboard players set print date 0
/execute @e[type=AreaEffectCloud,name=date_] ~ ~ ~ /summon AreaEffectCloud ~ ~1.5 ~ {Duration:2147483647, CustomNameVisible:1,Tags:["variable"],CustomName:"today"}
/execute @e[type=AreaEffectCloud,name=get_date] ~ ~1 ~ /scoreboard players operation @e[]
/tellraw @a {"score":{"name":"print","objective":"date"}}
// get_tomorrow
/tellraw @a {"score":{"name":"print","objective":"date"}}
// return
/scoreboard players operation print date = @e[type=AreaEffectCloud,tag=get_vaue,]
entitydata @e[type=ArmorStand,tag=get_value,name] {Duration:0,Age:0}
// function get_date
/time query
// function get_tomorrow
// function get_next_sunday
\ No newline at end of file
// clocking Processes
# InitalizeIDE
{"type":"impulse", "auto": true, "conditional": false}
// function
{"type":"chain", "auto": true}
/gamerule commandBlockOutput true
/gamerule disableElytraMovementCheck false
/gamerule doDaylightCycle false
/gamerule doEntityDrops false
/gamerule doFireTick false
/gamerule doMobLoot false
/gamerule doMobSpawning false
/gamerule doTileDrops false
/gamerule keepInventory true
/gamerule logAdminCommands false
/gamerule mobGriefing false
/gamerule naturalRegeneration true
/gamerule randomTickSpeed 0
/gamerule reducedDebugInfo false
/gamerule sendCommandFeedback true
/gamerule showDeathMessages true
/gamerule spawnRadius 7
/gamerule spectatorsGenerateChunks false
/scoreboard objectives add loop_interval dummy
/scoreboard objectives add loop_tick dummy
/scoreboard objectives add success_count dummy
/scoreboard objectives add dev dummy
/execute @e[type=ArmorStand,name=HackSmeltToIDE] ~1 ~-1 ~ /blockdata ~ ~ ~ {auto:1}
# HackSmeltToIDE
{"type":"impulse", "auto": false, "conditional": false}
/blockdata ~ ~ ~ {auto:0}
{"type":"chain", "auto": true}
/kill @e[type=AreaEffectCloud,tag=IDE]
/execute @e[type=ArmorStand,name=InitalizeIDE] ~ ~ ~-1 /summon AreaEffectCloud ~ ~ ~ {Duration:2147483647, CustomNameVisible:1, Tags:["CloudFunction","IDE"], CustomName:"ide.mcc"}
/execute @e[type=ArmorStand,name=InitalizeIDE] ~ ~ ~ /summon AreaEffectCloud ~1 ~ ~ {Duration:2147483647, CustomNameVisible:1, Tags:["CloudFunction","IDE"], CustomName:"InitalizeIDE"}
/execute @e[type=ArmorStand,name=HackSmeltToIDE] ~ ~ ~ /summon AreaEffectCloud ~1 ~ ~ {Duration:2147483647, CustomNameVisible:1, Tags:["CloudFunction","IDE"], CustomName:"HackSmeltToIDE"}
/execute @e[type=ArmorStand,name=RunProcesses] ~ ~ ~ /summon AreaEffectCloud ~1 ~ ~ {Duration:2147483647, CustomNameVisible:1, Tags:["CloudFunction","IDE"], CustomName:"RunProcesses"}
/execute @e[type=ArmorStand,name=PrintMenu] ~ ~ ~ /summon AreaEffectCloud ~1 ~ ~ {Duration:2147483647, CustomNameVisible:1, Tags:["CloudFunction","IDE"], CustomName:"PrintMenu"}
/execute @e[type=ArmorStand,name=MenuTeleportToDev] ~ ~ ~ /summon AreaEffectCloud ~1 ~ ~ {Duration:2147483647, CustomNameVisible:1, Tags:["CloudFunction","IDE"], CustomName:"MenuTeleportToDev"}
/execute @e[type=ArmorStand,name=MenuTeleportToGame] ~ ~ ~ /summon AreaEffectCloud ~1 ~ ~ {Duration:2147483647, CustomNameVisible:1, Tags:["CloudFunction","IDE"], CustomName:"MenuTeleportToGame"}
/execute @e[type=ArmorStand,name=TestforAndGiveDevTools] ~ ~ ~ /summon AreaEffectCloud ~1 ~ ~ {Duration:2147483647, CustomNameVisible:1, Tags:["CloudFunction","IDE"], CustomName:"TestforAndGiveDevTools"}
/kill @e[tag=oc_marker]
# RunProcesses
{"type":"repeating", "auto": true, "conditional": false}
// empty
{"type":"chain"}
/execute @e[type=AreaEffectCloud,tag=loop] ~ ~ ~ /execute @e[type=AreaEffectCloud,r=0,c=1,tag=LoopConstant] ~ ~ ~ /scoreboard players tag @e[type=AreaEffectCloud,r=0,c=1] add run
/execute @e[type=AreaEffectCloud,tag=loop] ~ ~ ~ /execute @e[type=AreaEffectCloud,r=0,c=1,tag=LoopConstant] ~ ~ ~ /scoreboard players tag @e[type=AreaEffectCloud,r=0,c=1] add LoopActive
/execute @e[type=AreaEffectCloud,tag=loop] ~ ~ ~ /execute @e[type=AreaEffectCloud,r=0,c=1,tag=LoopConstant] ~ ~ ~ /scoreboard players tag @e[type=AreaEffectCloud,r=0,c=1] remove loop
......@@ -17,11 +63,47 @@
/execute @e[type=AreaEffectCloud,tag=pause] ~ ~ ~ /scoreboard players tag @e[type=AreaEffectCloud,r=0,c=1,tag=LoopActive] remove LoopActive
/scoreboard players remove @e[type=AreaEffectCloud,tag=LoopActive,score_loop_tick_min=1] loop_tick 1
/scoreboard players tag @e[type=AreaEffectCloud,tag=LoopActive,score_loop_tick=0] add run
{"conditional":true}
/execute @e[type=AreaEffectCloud,tag=LoopActive,score_loop_tick=0] ~ ~ ~ /scoreboard players operation @e[type=AreaEffectCloud,r=0,c=1] loop_tick = @e[type=AreaEffectCloud,r=0,c=1] loop_interval
{"conditional":false}
/scoreboard players tag @e[type=AreaEffectCloud,tag=end] remove run
/scoreboard players tag @e[type=AreaEffectCloud,name=CloudDelay] add run {Age:-1}
/execute @e[type=AreaEffectCloud,tag=run] ~ ~ ~ /blockdata ~ ~-1 ~ {auto:1b}
/execute @e[type=AreaEffectCloud,tag=run] ~ ~ ~ /scoreboard players tag @e[type=AreaEffectCloud,r=0,c=1,tag=!LoopConstant] add end
/scoreboard players tag @e[type=AreaEffectCloud,tag=end] remove run
/execute @e[type=AreaEffectCloud,tag=end] ~ ~ ~ /blockdata ~ ~-1 ~ {auto:0b}
/scoreboard players tag @e[type=AreaEffectCloud,tag=end] remove end
\ No newline at end of file
/scoreboard players tag @e[type=AreaEffectCloud,tag=end] remove end
# PrintMenu
{"type":"repeating", "auto": true, "conditional": false}
/testfor @a[m=1,rxm=90,rx=90,tag=!MenuOpened]
{"type":"chain", "conditional": true}
/tellraw @a[m=1,rxm=90,rx=90,tag=!MenuOpened] {"translate":"ide.message","color":"green","with":[{"translate":"ide.name","color":"dark_green","hoverEvent":{"action":"show_text","value":{"translate":"Ideal Development Environment\nby Moesh (http://moesh.ca)"}},"clickEvent":{"action":"open_url","value":"http://moesh.ca"}},{"translate":"ide.menu.message","with":[{"translate":"ide.menu.tools","color":"white","hoverEvent":{"action":"show_text","value":{"translate":"ide.menu.tools.usage"}},"clickEvent":{"action":"run_command","value":"/scoreboard players tag @p[m=1,c=1] add NeedsDevTools"}},{"translate":"ide.menu.clear","with":[{"translate":"ide.menu.clear.inventory","color":"white","hoverEvent":{"action":"show_text","value":{"translate":"ide.menu.clear.inventory.usage"}},"clickEvent":{"action":"run_command","value":"/clear"}},{"translate":"ide.menu.clear.effects","color":"white","hoverEvent":{"action":"show_text","value":{"translate":"ide.menu.clear.effects.usage"}},"clickEvent":{"action":"run_command","value":"/effect @p clear"}}]},{"translate":"ide.menu.nightVision","color":"white","hoverEvent":{"action":"show_text","value":{"translate":"ide.menu.nightVision.usage"}},"clickEvent":{"action":"run_command","value":"/effect @p minecraft:night_vision 999999 0 true"}},{"text":"\n"},{"translate":"ide.menu.suggest","hoverEvent":{"action":"show_text","value":{"translate":"ide.menu.suggest.usage"}},"with":[{"translate":"Sidebar","color":"white","hoverEvent":{"action":"show_text","value":{"translate":"ide.menu.suggest.tag.sidebar.usage"}},"clickEvent":{"action":"suggest_command","value":"/scoreboard objectives setdisplay sidebar "}},{"translate":"ide.menu.suggest.tag.tagAreaEffectCloud","color":"white","hoverEvent":{"action":"show_text","value":{"translate":"ide.menu.suggest.tag.tagAreaEffectCloud.usage"}},"clickEvent":{"action":"suggest_command","value":"/scoreboard players tag @e[type=AreaEffectCloud,name="}},{"translate":"ide.menu.suggest.tag.tagClosestAreaEffectCloud","color":"white","hoverEvent":{"action":"show_text","value":{"translate":"ide.menu.suggest.tag.tagClosestAreaEffectCloud.usage"}},"clickEvent":{"action":"suggest_command","value":"/scoreboard players tag @e[type=AreaEffectCloud,c=1] "}},{"translate":"ide.menu.suggest.target.closestAreaEffectCloud","color":"white","hoverEvent":{"action":"show_text","value":{"translate":"ide.menu.suggest.target.closestAreaEffectCloud.usage"}},"clickEvent":{"action":"suggest_command","value":"/ @e[type=AreaEffectCloud,c=1] "}}]}]}]}
/scoreboard players tag @a[m=1,rxm=90,rx=90,tag=!MenuOpened] add MenuOpened
{"conditional": false}
/scoreboard players tag @a[m=1,rx=89,tag=MenuOpened] remove MenuOpened
# MenuTeleportToDev
{"type":"repeating", "auto": true, "conditional": false}
/testfor @a[tag=TeleportToDev]
{"type":"chain", "conditional": true}
/tp @a[tag=TeleportToDev] 0 3 0
/scoreboard players tag @a[tag=TeleportToDev] remove TeleportToDev
# MenuTeleportToGame
{"type":"repeating", "auto": true, "conditional": false}
/testfor @a[tag=TeleportToGame]
{"type":"chain", "conditional": true}
/tp @a[tag=TeleportToGame] 0 114 1000
/scoreboard players tag @a[tag=TeleportToGame] remove TeleportToGame
# TestforAndGiveDevTools
{"type":"repeating", "auto": true, "conditional": false}
/testfor @a[m=1,tag=NeedsDevTools]
{"type":"chain", "conditional": true}
/replaceitem entity @a[m=1,tag=NeedsDevTools] slot.hotbar.0 minecraft:command_block
/replaceitem entity @a[m=1,tag=NeedsDevTools] slot.hotbar.1 minecraft:chain_command_block
/replaceitem entity @a[m=1,tag=NeedsDevTools] slot.hotbar.2 minecraft:redstone_block
/replaceitem entity @a[m=1,tag=NeedsDevTools] slot.hotbar.3 minecraft:structure_block
/replaceitem entity @a[m=1,tag=NeedsDevTools] slot.hotbar.4 minecraft:stone_button
/scoreboard players tag @a[m=1,tag=NeedsDevTools] remove NeedsDevTools
\ No newline at end of file
// clocking loop_init
// AreaEffectCloud already registered
/execute @e[type=AreaEffectCloud,tag=loop_init] ~ ~ ~ /execute @e[type=AreaEffectCloud,c=1,tag=constant] ~ ~ ~ /scoreboard players tag @e[type=AreaEffectCloud,c=1] add abort_loop_init
/execute @e[type=AreaEffectCloud,tag=constant] ~ ~ ~ /execute @e[type=AreaEffectCloud,c=1,tag=abort_loop_init] ~ ~ ~ /tellraw @a[m=1] {"translate": "ide.generic.usage", "color": "red", "with": [{"translate": "ide.name"}, {"translate": "ide.loop_init.registered", "with": [{"selector": "@e[type=AreaEffectCloud,c=1]"}, {"text": "constant"} ] } ] }
/execute @e[type=AreaEffectCloud,tag=loop_init] ~ ~ ~ /execute @e[type=AreaEffectCloud,c=1,tag=interval] ~ ~ ~ /scoreboard players tag @e[type=AreaEffectCloud,c=1] add abort_loop_init
/execute @e[type=AreaEffectCloud,tag=interval] ~ ~ ~ /execute @e[type=AreaEffectCloud,c=1,tag=abort_loop_init] ~ ~ ~ /tellraw @a[m=1] {"translate": "ide.generic.usage", "color": "red", "with": [{"translate": "ide.name"}, {"translate": "ide.loop_init.registered", "with": [{"selector": "@e[type=AreaEffectCloud,c=1]"}, {"text": "interval"} ] } ] }
/scoreboard players tag @e[type=AreaEffectCloud,tag=abort_loop_init] remove loop_init
/scoreboard players tag @e[type=AreaEffectCloud,tag=abort_loop_init] remove abort_loop_init
// testfor repeating_command_block
/scoreboard players add @e[type=AreaEffectCloud,tag=loop_init] success_count 0
/execute @e[type=AreaEffectCloud,tag=loop_init] ~ ~ ~ /stats entity @e[type=AreaEffectCloud,c=1] set success_count @e[type=AreaEffectCloud,c=1] SuccessCount
/execute @e[type=AreaEffectCloud,tag=loop_init] ~ ~ ~ /testforblock ~ ~-1 ~ minecraft:repeating_command_block
/scoreboard players tag @e[type=AreaEffectCloud,tag=loop_init,score_success_count_min=1] add constant
/execute @e[type=AreaEffectCloud,tag=loop_init] ~ ~ ~ /execute @e[type=AreaEffectCloud,r=0,c=1,tag=constant] ~ ~ ~ /tellraw @a[m=1] {"translate": "ide.message", "color": "dark_green", "with": [{"translate": "ide.name", "color": "green"}, {"translate": "ide.generic.tag.add", "with": [{"text": "constant", "color": "white"}, {"selector": "@e[type=AreaEffectCloud,c=1]", "color": "white"} ] } ] }
/execute @e[type=AreaEffectCloud,tag=loop_init] ~ ~ ~ /stats entity @e[type=AreaEffectCloud,c=1] clear SuccessCount
/scoreboard players reset @e[type=AreaEffectCloud,tag=constant,score_success_count_min=0] success_count
/scoreboard players tag @e[type=AreaEffectCloud,tag=constant] remove loop_init
// is score_interval set?
/execute @e[type=AreaEffectCloud,tag=loop_init] ~ ~ ~ /scoreboard players operation @e[type=AreaEffectCloud,c=1] looping = @e[type=AreaEffectCloud,c=1] interval
/scoreboard players tag @e[type=AreaEffectCloud,tag=loop_init,score_success_count_min=0] add abort_loop_init
/execute @e[type=AreaEffectCloud,tag=abort_loop_init] ~ ~ ~ /tellraw @a[m=1] {"translate": "ide.generic.usage", "color": "red", "with": [{"translate": "ide.name"}, {"translate": "ide.tags.loop_init.usage", "with": [{"selector": "@e[type=AreaEffectCloud,c=1]"} ] } ] }
/scoreboard players tag @e[type=AreaEffectCloud,tag=abort_loop_init] remove loop_init
/scoreboard players tag @e[type=AreaEffectCloud,tag=abort_loop_init] remove abort_loop_init
// is interval loop
/scoreboard players tag @e[type=AreaEffectCloud,tag=loop_init] add interval
/execute @e[type=AreaEffectCloud,tag=loop_init] ~ ~ ~ /execute @e[type=AreaEffectCloud,tag=constant] ~ ~ ~ /tellraw @a[m=1] {"translate": "ide.message", "color": "dark_green", "with": [{"translate": "ide.name", "color": "green"}, {"translate": "ide.generic.tag.add", "with": [{"text": "interval", "color": "white"}, {"selector": "@e[type=AreaEffectCloud,c=1]", "color": "white"} ] } ] }
/scoreboard players tag @e[type=AreaEffectCloud,tag=loop_init] remove loop_init
// clocking PrintMenu
/testfor @a[m=1,rxm=90,rx=90,tag=!MenuOpened]
/tellraw @a[m=1,rxm=90,rx=90,tag=!MenuOpened] {
"translate":"ide.message",
"color": "green",
"with": [
{
"translate": "ide.name",
"color": "dark_green",
"hoverEvent": {
"action": "show_text",
"value": {
"translate": "Ideal Development Environment\nby Moesh (http://moesh.ca)"
}
},
"clickEvent": {
"action": "open_url",
"value": "http://moesh.ca"
}
},
{
"translate": "ide.menu.message",
"with": [
{
"translate": "ide.menu.tools",
"color": "white",
"hoverEvent": {
"action": "show_text",
"value": {
"translate": "ide.menu.tools.usage"
}
},
"clickEvent": {
"action": "run_command",
"value": "/scoreboard players tag @p[m=1,c=1] add NeedsDevTools"
}
},
{
"translate": "ide.menu.clear",
"with": [
{
"translate": "ide.menu.clear.inventory",
"color": "white",
"hoverEvent": {
"action": "show_text",
"value": {
"translate": "ide.menu.clear.inventory.usage"
}
},
"clickEvent": {
"action": "run_command",
"value": "/clear"
}
},
{
"translate": "ide.menu.clear.effects",
"color": "white",
"hoverEvent": {
"action": "show_text",
"value": {
"translate": "ide.menu.clear.effects.usage"
}
},
"clickEvent": {
"action": "run_command",
"value": "/effect @p clear"
}
}
]
},
{
"translate": "ide.menu.nightVision",
"color": "white",
"hoverEvent": {
"action": "show_text",
"value": {
"translate": "ide.menu.nightVision.usage"
}
},
"clickEvent": {
"action": "run_command",
"value": "/effect @p minecraft:night_vision 999999 0 true"
}
},
{
"text": "\n"
},
{
"translate": "ide.menu.suggest",
"hoverEvent": {
"action": "show_text",
"value": {
"translate": "ide.menu.suggest.usage"
}
},
"with": [
{
"translate":"Sidebar",
"color": "white",
"hoverEvent": {
"action": "show_text",
"value": {
"translate": "ide.menu.suggest.tag.sidebar.usage"
}
},
"clickEvent": {
"action": "suggest_command",
"value": "/scoreboard objectives setdisplay sidebar "
}
},
{
"translate":"ide.menu.suggest.tag.tagAreaEffectCloud",
"color": "white",
"hoverEvent": {
"action": "show_text",
"value": {
"translate": "ide.menu.suggest.tag.tagAreaEffectCloud.usage"
}
},
"clickEvent": {
"action": "suggest_command",
"value": "/scoreboard players tag @e[type=AreaEffectCloud,name="
}
},
{
"translate":"ide.menu.suggest.tag.tagClosestAreaEffectCloud",
"color": "white",
"hoverEvent": {
"action": "show_text",
"value": {
"translate": "ide.menu.suggest.tag.tagClosestAreaEffectCloud.usage"
}
},
"clickEvent": {
"action": "suggest_command",
"value": "/scoreboard players tag @e[type=AreaEffectCloud,c=1] "
}
},
{
"translate":"ide.menu.suggest.target.closestAreaEffectCloud",
"color": "white",
"hoverEvent": {
"action": "show_text",
"value": {
"translate": "ide.menu.suggest.target.closestAreaEffectCloud.usage"
}
},
"clickEvent": {
"action": "suggest_command",
"value": "/ @e[type=AreaEffectCloud,c=1] "
}
}
]
}
]
}
]
}
/scoreboard players tag @a[m=1,rxm=90,rx=90,tag=!MenuOpened] add MenuOpened
/scoreboard players tag @a[m=1,rx=89,tag=MenuOpened] remove MenuOpened
\ No newline at end of file
// clocking PlaceFunction
/execute @e[type=AreaEffectCloud,tag=place_function] ~ ~ ~ detect ~ ~ ~ minecraft:air 0 /kill @e[type=AreaEffectCloud,r=0,c=1]
/testfor @e[type=AreaEffectCloud,tag=CloudFunction,name=Initalize]
/scoreboard players tag @e[type=AreaEffectCloud,name=InitalizeCloudFunction] add run
/execute @e[type=AreaEffectCloud,tag=place_function] ~ ~ ~ /testforblock ~ ~ ~ minecraft:command_block -1 {Command:"/entitydata @e[type=AreaEffectCloud,c=1,tag=place_function] {Duration:2147483647,CustomNameVisible:1,CustomName:\"\"}"}
/testfor @e[type=AreaEffectCloud,tag=place_function,score_SuccessCount=0]
/scoreboard players tag @e[type=AreaEffectCloud,tag=place_function,score_SuccessCount=0] add place_function_run
/scoreboard players tag @e[type=AreaEffectCloud,name=PlaceFunction_run] add run
/testfor @e[type=AreaEffectCloud,tag=place_function_cleanup]
/scoreboard players tag @e[type=AreaEffectCloud,name=PlaceFunction_cleanup] add run
// function InitalizeCloudFunction
/execute @e[type=AreaEffectCloud,tag=Initalize] ~ ~ ~ /blockdata ~ ~ ~ {auto:0b,Command:"/entitydata @e[type=AreaEffectCloud,c=1,tag=place_function] {Duration:2147483647,CustomNameVisible:1,CustomName:\"\"}"}
/scoreboard players add @e[type=AreaEffectCloud,tag=Initalize] SuccessCount 0
/execute @e[type=AreaEffectCloud,tag=Initalize] ~ ~ ~ /stats entity @e[type=AreaEffectCloud,r=0,c=1] set SuccessCount @e[type=AreaEffectCloud,r=0,c=1] SuccessCount
/scoreboard players tag @e[type=AreaEffectCloud,tag=Initalize] remove Initalize
// function PLaceFunction_run
/execute @e[type=AreaEffectCloud,tag=place_function_run] ~ ~ ~ /blockdata ~ ~ ~ {auto:1b}
/scoreboard players reset @e[type=AreaEffectCloud,tag=place_function_run] SuccessCount
/scoreboard players tag @e[type=AreaEffectCloud,tag=place_function_run] add place_function_cleanup
/scoreboard players tag @e[type=AreaEffectCloud,tag=place_function_run] remove place_function_run
// function PLaceFunction_cleanup
/execute @e[type=AreaEffectCloud,tag=place_function_cleanup] ~ ~ ~ /setblock ~ ~ ~ minecraft:air
/scoreboard players tag @e[type=AreaEffectCloud,tag=place_function_cleanup] add cloud_function
/scoreboard players tag @e[type=AreaEffectCloud,tag=place_function_cleanup] remove place_function
/scoreboard players tag @e[type=AreaEffectCloud,tag=place_function_cleanup] remove place_function_cleanup
\ No newline at end of file
// function SetupIDE
/gamerule commandBlockOutput true
/gamerule disableElytraMovementCheck false
/gamerule doDaylightCycle false
/gamerule doEntityDrops false
/gamerule doFireTick false
/gamerule doMobLoot false
/gamerule doMobSpawning false
/gamerule doTileDrops false
/gamerule keepInventory true
/gamerule logAdminCommands false
/gamerule mobGriefing false
/gamerule naturalRegeneration true
/gamerule randomTickSpeed 0
/gamerule reducedDebugInfo false
/gamerule sendCommandFeedback true
/gamerule showDeathMessages true
/gamerule spawnRadius 7
/gamerule spectatorsGenerateChunks false
/scoreboard objectives add loop_interval dummy
/scoreboard objectives add loop_tick dummy
/scoreboard objectives add success_count dummy
/scoreboard objectives add dev dummy
\ No newline at end of file
// clocking teleport_dev
/testfor @a[tag=teleport_dev]
/tp @a[tag=teleport_dev] 0 3 0
/scoreboard players tag @a[tag=teleport_dev] remove teleport_dev
// clocking teleport_game
/testfor @a[tag=teleport_game]
/tp @a[tag=teleport_game] 0 114 1000
/scoreboard players tag @a[tag=teleport_game] remove teleport_game
// clocking teleport_station
/testfor @a[tag=teleport_station]
/execute @e[score_dev_min=-2147483648] ~ ~ ~ /scoreboard players operation @e[score_dev_min=-2147483648,c=1] station_match = @e[score_dev_min=-2147483648,c=1] station
/execute @e[score_dev_min=-2147483648] ~ ~ ~ /scoreboard players operation @e[score_dev_min=-2147483648,c=1] station_match -= @e[score_dev_min=-2147483648,c=1] dev
/tp @a[tag=teleport_station] @e[type=ArmorStand,name=teleport_station,score_dev_match_min=0,score_dev_match=0]
/scoreboard players tag @a[name=teleport_station] remove teleport_station
// function station_set
/execute @e[score_dev_min=-2147483648] ~ ~ ~ /scoreboard players operation @e[score_dev_min=-2147483648,c=1] station_match = @e[score_dev_min=-2147483648,c=1] station
/execute @e[score_dev_min=-2147483648] ~ ~ ~ /scoreboard players operation @e[score_dev_min=-2147483648,c=1] station_match -= @e[score_dev_min=-2147483648,c=1] dev
/kill @e[type=ArmorStand,name=teleport_station,score_station_match_min=0,score_station_match=0]
/execute @a[tag=station_set] ~ ~ ~ /summon AreaEffectCloud ~ ~ ~ {Duration:2147483647,CustomNameVisible:1,CustomName:"teleport_station"}
/execute @a[name=teleport_station] ~ ~ ~ tp @e[name=teleport_station,c=1] @a[tag=station_set,c=1]
/execute @a[tag=station_set] ~ ~ ~ /scoreboard players operation @e[type=AreaEffectCloud,name=teleport_station,c=1] station = @a[tag=station_set,c=1] dev
\ No newline at end of file
// clocking TestforAndGiveDevTools
/testfor @a[m=1,tag=NeedsDevTools]
/replaceitem entity @a[m=1,tag=NeedsDevTools] slot.hotbar.0 minecraft:command_block
/replaceitem entity @a[m=1,tag=NeedsDevTools] slot.hotbar.1 minecraft:chain_command_block
/replaceitem entity @a[m=1,tag=NeedsDevTools] slot.hotbar.2 minecraft:redstone_block
/replaceitem entity @a[m=1,tag=NeedsDevTools] slot.hotbar.3 minecraft:structure_block
/replaceitem entity @a[m=1,tag=NeedsDevTools] slot.hotbar.4 minecraft:command_block 1 0 {
display: {
Name:"Place CloudFunction"
},
BlockEntityTag: {
auto:1,
Command:"/summon AreaEffectCloud ~ ~-0.5 ~ {
Duration:2147483647, CustomNameVisible:1,
Tags:[\"CloudFunction\"]
CustomName:\"Initalize\"
}"
},
}
/replaceitem entity @a[m=1,tag=NeedsDevTools] slot.hotbar.5 minecraft:command_block 1 0 {
display: {
Name:"Place CloudDelay"
},
BlockEntityTag: {
auto:1,
Command:"/summon AreaEffectCloud ~ ~-0.5 ~ {
Duration:2147483647, CustomNameVisible:1,
Tags:[\"CloudDelay\"]
}"
}
}
/scoreboard players tag @a[m=1,tag=NeedsDevTools] remove NeedsDevTools
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment