Started by
Silly Billy
on
Topic category: Help with Minecraft modding (Java Edition)
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