##################################### # Created by NLBlackEagle # # Website: www.craftrealms.org # # TeamSpeak: ts3.craftrealms.org # ##################################### Chest100Script: type: world default constants: #The RepopulateCooldown value is in minutes and determines the amount of time before a re-population #should be executed. This causes no server load since the re-population is player-bound. #Change the value "300m" to any number you'd like. 300m equals 5 hours. RepopulateCooldown: 300m #PopulateAttemts, lower this number to decrease the amount of items in a chest. PopulateAttemts: 15 #PopulateMinimalItems, Minimal items in a chest upon populating. 0 Makes items more rare but not impossibile to populate. PopulateMinimalItems: 2 debug: true events: on server start: - yaml load:lootcrates.yml id:lootcrates on player opens chest: - if !]> { - flag player :true duration: - if ]> { - queue clear } - repeat { - inventory add d: o: slot: } - repeat { - if == 5 { - inventory add d: o: slot: } } } on player places block: - if li@chest|trapped_chest contains { - flag server chest:->: }