lanicoredasantigas

server_scripts\botany\gregrubber.js

Nov 3rd, 2024
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ServerEvents.recipes(event => {
  2.  
  3.     event.remove({ id: 'botanytrees:gtceu/rubber' })
  4.  
  5.     event.recipes.botanypots.crop(
  6.         'gtceu:rubber_sapling', // seed item
  7.         ['minecraft:dirt'], // categories that this crop can be planted on
  8.         { block: 'gtceu:rubber_sapling' }, // display block
  9.         [
  10.             Item.of('gtceu:rubber_log') // item
  11.                 .withChance(100) // weight of this entry compared to the others
  12.                 .withRolls(2, 4) // the times this loot will be chosen (min, max)
  13.             ,  
  14.             Item.of('minecraft:stick') // item
  15.                 .withChance(25) // weight of this entry compared to the others
  16.                 .withRolls(1, 2) // the times this loot will be chosen (min, max)
  17.             ,  
  18.             Item.of('gtceu:rubber_sapling') // item
  19.                 .withChance(15) // weight of this entry compared to the others
  20.                 .withRolls(1, 2) // the times this loot will be chosen (min, max)
  21.             ,  
  22.             Item.of('gtceu:sticky_resin') // item
  23.                 .withChance(50) // weight of this entry compared to the others
  24.                 .withRolls(2, 4) // the times this loot will be chosen (min, max)
  25.         ],
  26.         10, // growthTicks
  27.         1 // optional, growthModifier - this can be set to 1 in most cases
  28.     )
  29. })
Advertisement
Add Comment
Please, Sign In to add comment