Started by
RabiTheCheetah
on
Topic category: Help with Minecraft modding (Java Edition)
I still have a lot to learn about the mcreator block code system. I am so confused by the attribute system. I looked for tutorials and forum posts and anything but I could not find anything. I spent a day googling and looking for answers to see if I can solve it myself, but I just can't figure out what I have done wrong.
This is my attempt https://imgur.com/a/Xf70MHN
I don't know what exactly is wrong with it, so if anyone can help tell me where I went wrong, I would really appreciate it.
what does it currently do in game and what do you want it to do that it doesn't?
Right now, it just does not do anything. I am trying to make it so that every time they eat the food item, it lowers the attribute by one. Then when the attribute level gets below a specific point, it gives them the potion effect at a level based on how low the attribute gets.
What triggers the first procedure?
Try using these blocks,
Is there an easier way to do this without attributes? Such as just using a variable? The Attributes are really complicated and just not working.
I just found out, I forgot to give the custom attribute a max an a minimum. I will now try it after changing that and see if that one thing was the entire issue.
You can use a global variable,
I made the global Variable, but I am not sure how to get it to show up in the procedure.
you have to save and reopen it for some reason
It is now half working, which is better than not working.
It is now working, thank you so much.
oh great! :3