Skip to content

Instantly share code, notes, and snippets.

@Nathan22211
Last active June 7, 2020 14:38
Show Gist options
  • Save Nathan22211/2e7b733f7ea039a640db436f0e20555a to your computer and use it in GitHub Desktop.
Save Nathan22211/2e7b733f7ea039a640db436f0e20555a to your computer and use it in GitHub Desktop.
import mods.dropt.Dropt;
Dropt.list("stone")
// Set the list priority
.priority(1000000)
.add(Dropt.rule()
.matchBlocks(["minecraft:stone", "minecraft:cobblestone"])
.replaceStrategy("REPLACE_ITEMS")
.addDrop(Dropt.drop()
.items([<survivalist:rock:0>, <primal:rock_stone>], Dropt.range(5, 8))
)
)
.add(Dropt.rule()
.matchBlocks(["minecraft:gravel"])
.matchDrops([<minecraft:gravel>])
.replaceStrategy("REPLACE_ITEMS")
.addDrop(Dropt.drop()
.force()
.items([<pyrotech:rock:0>, <pyrotech:rock:1>, <pyrotech:rock:2>, <pyrotech:rock:3>, <pyrotech:rock:8>], Dropt.range(1, 4))
)
.addDrop(Dropt.drop()
.force()
.items([<minecraft:flint>, <pyrotech:material:10>], Dropt.range(1, 2))
)
)
.add(Dropt.rule()
.matchBlocks(["minecraft:sandstone:0"])
.matchDrops([<minecraft:sandstone:0>])
.replaceStrategy("REPLACE_ITEMS")
.addDrop(Dropt.drop()
.force()
.items([<pyrotech:rock:6>], Dropt.range(3, 4))
)
.addDrop(Dropt.drop()
.force()
.items([<pyrotech:rock:5>], Dropt.range(3, 4))
)
)
# drops coal but the rocks aren't dropping
.add(Dropt.rule()
.matchBlocks(["minecraft:coal_ore"])
.replaceStrategy("ADD")
.addDrop(Dropt.drop()
.force()
.items([<survivalist:rock:0>, <primal:rock_stone>], Dropt.range(1, 4))
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment