Advertisement
Dilnu

Untitled

Jun 20th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. recipes.addShapeless(<minecraft:bedrock>.withTag({souls: 4.0}), [<ore:treeSapling>]);
  2.  
  3. recipes.addShapeless(<minecraft:wheat_seeds>, [<minecraft:wheat_seeds>.marked("gem"), <minecraft:bedrock>.marked("mob")], function(outputs, inputs, crafting) {
  4. val full = <minecraft:wheat_seeds>.withTag({souls: 64.0});
  5. if (inputs.gem.tag.souls == full.tag.souls) {
  6. return null;
  7. }
  8. if (!(inputs.gem.tag in "souls")) {
  9. return <minecraft:wheat_seeds>.withTag({souls: inputs.mob.tag.souls});
  10. }
  11. var will = inputs.gem.tag.souls + inputs.mob.tag.souls;
  12. if (will > full.tag.souls) {
  13. will = full.tag.souls;
  14. }
  15. return <minecraft:wheat_seeds>.withTag({souls: will});
  16. });
  17.  
  18. print("reloaded");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement