[EMF] Entity Model Features [Fabric & Forge]

[EMF] Entity Model Features [Fabric & Forge]

45M Downloads

[Bug] The properties file for random entities does not support nbt.1.equipment.mainhand.id= or nbt.1.HandItems.0.id= for versions below 1.21.5

VOLKOUL opened this issue ยท 6 comments

commented

Describe the bug

I am working on a resource pack that changes the zombified piglin texture provided that there is a golden axe in the main hand. I have managed to make it work on 1.21.8, but not on older versions (I didn't test this on 1.21.5, but on 1.21.4 and it didn't work. According to some documentation I found that it is supposed to work since 1.21.5 so that's why it is written in the title) If I understand correctly the properties file for random entities does not support "deep" nbt based rules when it comes to older game versions?

This is what I used for 1.21.8: (Works)

skins.1=2
nbt.1.equipment.mainhand.id="minecraft:golden_axe"

And this is what I tried to use for 1.21.4: (Doesn't work)

skins.1=2
nbt.1.HandItems.0.id=minecraft:golden_axe

I also tried to use this: (Doesn't work either)

skins.1=2
nbt.1.Hand[0].id=minecraft:golden_axe

Screenshots

Expected Result: (This is 1.21.8)
Image
On other game versions it looks exactly like the piglins in the back.

(please complete the following information):

  • EMF version 3.0.1
commented

try nbt.1.HandItems.0.id=print:minecraft:golden_axe and tell me what it shows in the log

also try nbt.1.HandItems.0.id=print_all:minecraft:golden_axe and send the full nbt printout in that log here

commented

nbt.1.HandItems.0.id=print:minecraft:golden_axe spams the log with:

[ETF]: nbt NBT property [single] print result: false
[ETF]: nbt NBT property [single] print data: HandItems.0.id={}
[ETF]: nbt NBT property [single] print result: false
[ETF]: nbt NBT property [single] print data: HandItems.0.id={count:1,id:"minecraft:golden_axe"}

https://mclo.gs/R3XzpES

While nbt.1.HandItems.0.id=print_all:minecraft:golden_axe replaces EVERY piglin with the texture intended just for the axe holder.

https://mclo.gs/eLqNsag

I can send you the pack if you want, it is a detachment from the main pack intended to be merged when completed, thus it's very small and only does the piglin stuff.

commented

Also I just realized this is an ETF issue, not an EMF issue...
Sorry for posting it in the wrong issues section

commented

its fine for now, looks like there is no item in handitems.0

try other numbers i've heard list indexes may differ on emf compared to optifine so this may be that

commented

if you can confirm the difference i will look into it and match them up

commented

Whatever I try it doesn't seem to work. I tried changing the 0 with different numbers in both nbt.1.HandItems.0.id=print:minecraft:golden_axe and nbt.1.HandItems.0.id=print_all:minecraft:golden_axe, but the result is either this:

Image Or this: Image

Sorry I took this long to respond, I had a lot of other stuff to test