#Seed provider and wrong ID

2 messages · Page 1 of 1 (latest)

wanton plover
#

here's an example of my script:

    .displayName('Semilla de Maíz')
    .crop('kubejs:maiz',1)
    .crop('kubejs:maiz',1)
    .age(5, (builder) =>{
      builder.shape(0, 0, 0, 0, 16, 2, 16)
                .shape(1, 0, 0, 0, 16, 2, 16)
                .shape(2, 0, 0, 0, 16, 4, 16)
                .shape(3, 0, 0, 0, 16, 6, 16)
                .shape(4, 0, 0, 0, 16, 8, 16)
                .shape(5, 0, 0, 0, 16, 14, 16)
      })
    .survive((state, level, pos) => {
          const FARMLAND = Java.loadClass(
            "net.minecraft.world.level.block.FarmBlock"
          );
          let blockState = level.getBlockState(pos.below());
          let mcBlock = blockState.block;
          if (mcBlock instanceof FARMLAND) {
            return true;
          } else return false;
      })
    .growTick((tickEvent)=>5)
    .texture(0,'kubejs:block/semillas/semillamaiz0') 
    .texture(1,'kubejs:block/semillas/semillamaiz1')
    .texture(2,'kubejs:block/semillas/semillamaiz2')
    .texture(3,'kubejs:block/semillas/semillamaiz3')
    .texture(4,'kubejs:block/semillas/semillamaiz4')
    .texture(5,'kubejs:block/semillas/semillamaiz5')
    .item((seedItem) => {
        seedItem
        .texture('kubejs:item/ingredientes/semillas/semillamaiz') 
        .displayName('Semilla de Maíz');
    })```
and this one in another file:
``` event.addBlockLootModifier("minecraft:grass")
        .addLoot(Item.of("kubejs:semilla_maiz_seed").withCount(1).withChance(0.05))```
but i dont know why the seed itself, calls the ID "semilla_maiz_seed", i dont know where the "seed" word its coming, even if i dont put the word in the LootJS script, it doesnt work either
hollow archBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!