Open GraysonAdams opened 6 years ago
I can confirm this issue.
No matter how I type in a mobs "name" (however I'm trying this on a client and with a modded mob):
@biome:ice_flats, mob:grimoireofgaia:banshee, weight:300
@biome:ice_flats, mob:grimoireofgaia.banshee, weight:300
@biome:ice_flats, mob:banshee, weight:300
@biome:ice_flats, mob:gaia.entity.monster.EntityGaiaBanshee, weight:300
All result in the same error, so I have no idea which one is correct.
https://gist.github.com/HellishINC/54810b6011f9739937ceb8aaa3985bc6
Having a similar issue with a set of rules I used in previous versions. Something in the mod broke when it was ported to 1.12.x.
Rule example, which worked in previous versions:
dim:0 & mob:EntityCreeper & chance:0.5
Edit: I'm a bit rusty on my Java, and never coded a Forge mod, so I might be totally wrong on this. Looking into the exception, there's a problem on RuleMob, line 30.
Looking into the Forge source code, ENTITIES has no "getValues()" but a "getValue()". So to get the list of mobs, there should be an iteration of the registry (an example is the getEntry function in EntityRegistry, line 355, I think).
It could also be that the namespace is not correctly imported. Or, it could be that the version of Forge used to develop version 1.2.1 of NMSOT has become obsolete. There seems to have been a change in how registry classes work.
Seems like this was addressed in the closed ticket #13. I hadn't seen it.
When I add the following line to my backlist rules: "mob:creeper & chance:0.50" I get:
Server thread/ERROR [FML]: Caught exception from nmsot (java.lang.NoSuchFieldError: ENTITIES)
What am I doing wrong? This is correct syntax, no?