#lootjs not recognizing a block

56 messages · Page 1 of 1 (latest)

plush lark
#

I put the code below into a lootjs script, and while this exact script works fine for other blocks, it doesn't work at all for Pream Leaves from the End's Phantasm mod. My thought process is that there's an issue with the 1.19.2 forge version of the End's Phantasm mod, I was asked to show my script here.

event.addBlockLootModifier("phantasm:pream_leaves").randomChance(0.6).matchMainHand(Item.of("exnihilosequentia:wooden_crook").ignoreNBT()).addLoot("exnihilosequentia:silkworm");

proud narwhalBOT
#

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

plush lark
#

even without the random change, no silkworms would drop from the leaves

fathom stirrup
#

can you add event.enableLogging() at the start of the event?

#

and send what it logs

#

after you break the leaves

plush lark
#

as a seperate line or before the"addBlockLootModifier" part?

#

I can't find any log that mentions it

#

[21:01:30] [WARN] Error parsing recipe create:kjs_v38dz0l3u0olj5vahekvjfuq[create:mixing]: {"type":"create:mixing","results":[{"item":"ars_nouveau:green_archwood_sapling","count":1}],"ingredients":[{"item":"ars_nouveau:source_berry"},{"item":"phantasm:pream_sapling"},{"fluid":"minecraft:empty","nbt":{},"amount":0}],"heatRequirement":"heated"}: java.lang.IllegalStateException: Can't modify the empty stack. [21:01:30] [INFO] Added 48 recipes, removed 4 recipes, modified 1 recipes, with 13 failed recipes in 842.9 ms [21:01:31] [WARN] loottables.js#8: You don't need to call .ignoreNBT() anymore, all item ingredients ignore NBT by default! [21:01:31] [WARN] loottables.js#9: You don't need to call .ignoreNBT() anymore, all item ingredients ignore NBT by default! [21:01:31] [WARN] loottables.js#10: You don't need to call .ignoreNBT() anymore, all item ingredients ignore NBT by default! [21:01:31] [WARN] loottables.js#11: You don't need to call .ignoreNBT() anymore, all item ingredients ignore NBT by default! [21:01:31] [WARN] loottables.js#12: You don't need to call .ignoreNBT() anymore, all item ingredients ignore NBT by default! [21:01:31] [WARN] loottables.js#13: You don't need to call .ignoreNBT() anymore, all item ingredients ignore NBT by default! [21:01:31] [WARN] loottables.js#14: You don't need to call .ignoreNBT() anymore, all item ingredients ignore NBT by default! [21:01:31] [WARN] loottables.js#15: You don't need to call .ignoreNBT() anymore, all item ingredients ignore NBT by default!

#

this is what I found in the log, the weird thing about that first bit is that it's set up the exact same as other mixing recipes, just with one word changed to green

#

but that's not related to this

#

I also just noticed I had a typo on that mixing recipe

#

I think I can almost garuntee the issue is the other mod, I checked the tags of the block, it has the minecraft:leaves tag, which i think is what ex nihilo looks for to add the silkworms, since it works with other modded leaves

fathom stirrup
#

{"fluid":"minecraft:empty","nbt":

#

your fluid is failing

plush lark
#

I have 4 other recipes that also don't have fluid yet it worked fine

#

the green one had a typo on one of the items

fathom stirrup
#

oh ok

plush lark
#

but as far as the issue of the thread itself, I think the loot tables of the mod were probably implemented weirdly in their 1.19 version, would explain why saplings only drop when breaking leaves by hand

fathom stirrup
#

Can you break any other logs?

#

and see if it prints the logging

plush lark
#

I can't find it anywhere honestly

#

what I showed is the only thing I could find mentioning the lootjs stuff

fathom stirrup
#

wtf their loottable is completly borked

#

i downloaded and opened the jar

plush lark
#

guess that confirms it at least

#

oh well, chorus plants are more plentiful so it wouldn't be the worst thing to just make that able to drop the silkworms

fathom stirrup
#

still it should work because this loottable exists

#

at least for pream_leaves

plush lark
#

yea, I just don't know why they seem resistant to being edited

fathom stirrup
#

i will add this mod to my instance and see, I need this mod and ars ?

#

ops, exnihilo

plush lark
#

yea, trying to make a modpack for surviving in the end

#

that's why i was trying to add the silkworms to the tree

fathom stirrup
#

@plush lark what chances you want for nothing, sapling and worms?

plush lark
#

without crook, 50% sapling 50% nothing seems fine
with crook, 40% worms 40% sapling 20% nothing?

#

apparently the pream door and trapdoor were both shapeless recipes, those were easy to fix though

fathom stirrup
#

@plush lark do you see something?

plush lark
#

mcreator

#

that explains a few things

#

at least this one doesn't have the sound issues I've had with other ones

fathom stirrup
#

forge about it, it is hard coded to oblivion

#

forget*

plush lark
#

ah

#

so, chorus plant silkworms it is lol

fathom stirrup
#

what makes me wonder is why the f he did on fabric like a real modder, and on forge dude went to MCreator

plush lark
#

no idea

fathom stirrup
#

maybe dif persons? like someone submited to him ?

plush lark
#

could be

icy orchid
#

@fathom stirrup good boy

#

Time to become a supporter on AR too

fathom stirrup