This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
$dir = 'tmp/'; | |
$files = scandir($dir); | |
$delay = time() - 2*60; | |
foreach($files as $file) { | |
if(strpos($file, '.png') !== false && filemtime($dir.$file) <= $delay) { | |
echo $dir.$file."\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CommandBlock order : West, East, Down, Up, North, South | |
# Only call once | |
/scoreboard objectives add Hydra dummy | |
/scoreboard objectives add BabyHydra dummy | |
# Summon a persistent (never despawning) Zombie | |
/summon Zombie ~ ~ ~ {CustomName:"HydraZombie",CustomNameVisible:1,Equipment:[{},{},{id:minecraft:carrot,Count:1,tag:{display:{Name:"HydraSource1"}}},{id:minecraft:potato,Count:1,tag:{display:{Name:"HydraSource2"}}},{id:iron_helmet}],DropChances:[0.0f,0.0f,2.0f,2.0f,0.0f],PersistenceRequired:1} | |
# Around a fast clock (20t/s) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CommandBlock order : West, East, Down, Up, North, South | |
# Only call once | |
/scoreboard objectives add Diving stat.diveOneCm | |
/scoreboard objectives add Stupid dummy | |
# Around a fast clock (20t/s) | |
# /fill ~ ~-1 ~ ~ ~-1 ~-1 redstone_block | |
# /fill ~ ~1 ~ ~ ~1 ~-1 stone |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CommandBlock order : West, East, Down, Up, North, South | |
# Only call once | |
/scoreboard objectives add Invisible dummy | |
/scoreboard objectives add Stupid dummy | |
# Around a fast clock (20t/s) | |
# /fill ~ ~-1 ~ ~ ~-1 ~-1 redstone_block | |
# /fill ~ ~1 ~ ~ ~1 ~-1 stone |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CommandBlock order : West, East, Down, Up, North, South | |
# /give @p minecraft:diamond_sword 1 0 {display:{Name:"LifeStealer"},ench:[{id:7,lvl:1}],HideFlags:1} | |
# /replaceitem entity @p slot.hotbar.0 minecraft:diamond_sword 1 0 {display:{Name:"LifeStealer"},ench:[{id:7,lvl:1}]} | |
# Only call once | |
/scoreboard objectives add LifeSteal dummy | |
/scoreboard objectives add DamageDealt stat.damageDealt | |
/scoreboard objectives add DamageAdded dummy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CommandBlock order : West, East, Down, Up, North, South | |
# /give @p snowball 1 0 {display:{Name:"Lure"}} | |
# Only call once | |
/scoreboard objectives add LureDelay dummy | |
/scoreboard objectives add OnGround dummy | |
# Around a fast clock (20t/s) | |
# /fill ~ ~-1 ~ ~ ~-1 ~-1 redstone_block |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CommandBlock order : West, East, Down, Up, North, South | |
# Enchantment TorchBomber ID 101 | |
# /give @p minecraft:bow 1 0 {display:{Lore:["TorchBomber"]},ench:[{id:101,lvl:1}]} | |
# /give @p minecraft:arrow 1 | |
# Only call once | |
/scoreboard objectives add HandlingTorchBomber dummy | |
/scoreboard objectives add ArrowLifetime dummy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#TODO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CommandBlock order : West, East, Down, Up, North, South | |
# /give @p minecraft:diamond_boots 1 0 {display:{Lore:["Icy Boots"]},ench:[{id:102,Level:1}]} | |
# Only call once | |
/scoreboard objectives add IceBooted dummy | |
# Around a fast clock (20t/s) | |
# /fill ~ ~-1 ~ ~ ~-1 ~-1 redstone_block | |
# /fill ~ ~1 ~ ~ ~1 ~-1 stone |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(isset($_POST['submit'])) { | |
handleForm(); | |
} | |
else { | |
displayForm(); | |
} | |
function displayForm() { |