Started by
Blast3157
on
Topic category: Help with Minecraft modding (Java Edition)
I am working on a mod for a purpose I will not mention here, as it is currently a work in progress (not the purpose- the mod). I ran into an issue when trying to locate cauldrons and I can't seem to find my way around it. As I cannot code, there is no apparent solution. Basically, cauldron's are not block entities, so that rules out most options (if what I have heard is correct). Is there currently a way to record the location of each placed cauldron in every location, originating from a block placement event (in a procedure)? Thank you!
In an efficient way, not really, since the game does not index their location.
I would recommend scanning for one by iterating location index, but in a limited range (very important for performance!)
Thank you for your response and assistance.
As I am new to this, I think it is in everyone's best interest if I include what the mod is supposed to do. Basically, the mod intended to make cauldrons fill with snow/rain (currently from non-drip sources) with the amount that the cauldron would have if the storm had continued and ended on its vanilla "calendar," once a player sleeps, therefore skipping the remainder of the storm. The tick stuff wasn't the difficult part, as I believe, with the help of AI, it was tackled adequately. I have the base for the mod but I ran into an issue when trying to find the cauldrons. They aren't block entities. I wish there was a way to grant them this status, but to my knowledge, I have no way to do so, as I can't code. I do not know how to "iterate a location index" either and my attempts to locate an "item" to do this in a procedure all failed, as I could not figure out how to 1. Make it scan for a block type in a specific location *what does this go off? 2. Make it scan between two chords. Thank you again and I look forward to learning more about this.
[for all who read this, please do not claim this mod idea to be their own and I request that you do not attempt to create it either, unless for the goal of furthering my attempt in its domain- meaning this specific mod]