Topic category: Help with Minecraft modding (Java Edition)
[to solve this issue you clear all cache]
entity.getPersistentData().putDouble("redrep", (entity.getPersistentData().getDouble("redrep") - 1));
^
symbol: method getPersistentData()
location: variable entity of type Entity
3 errors
> Task :compileJava FAILED
This is one of the three errors my console showed me. What I did was create a procedure for when my custom mob dies (Im creating a faction reputation system and this is a guard for a faction) so when this mob dies it sets the event entities custom number nbt tag "redrep" (reputation of the red faction) to the current redrep subtracted by 1. however this block code is stopping my stuff from compiling somehow and I cant figure out what it is or how to fix it myself.
Try clicking the plaster icon in the top right
regenerate code and build? If so I have tried that multiple times and it doesnt seem to change anything about my issue so far.
Can you send your procedure?
I cannot send a screenshot of the blocks unfortunately as I do not know how
imgur
What version and generator?
I am using 1.20.1 fabric generator for 2023.4
https://imgur.com/a/3cqiKGJ
ok im going to just abandon this because im so cooked no one can help me
Hmm, well this seems to be fabric bug. In this case the logical next step would be to report the bug to the plugin author, and not to the general public on those forums here