-
Keyboardist/Classical Guitarist and C++ Software/Game Developer who enjoys Playing Chess, Porting Games, Composing/Transcribing Music, and Playing Jazz.
- Joined on
2023-05-30
Awesome! So that means the campfires should be working completely
Everything works though besides the items not dropping when the campfire is destroyed, and @PrairieWind said they might know the fix, so I'll create a new PR since I've made newer commits.
If I was to have it global (or local to the file) then the game would only be able to process four food entities at a time. I'm not sure of any other way to have a global list of food entities…
52c67005fa/mods/ITEMS/mcl_campfires/api.lua (L57) Storing the entity locations is unnecessary since you can always look up the cooking item index in the food_entity list to get the pos.
How…
I was personally going to have just four entity meta data variables, but you added stuff you had before I got around to it.
I tried that, I couldn't seem to actually get it to work, although…
@MrRar It's my first time working with the Minetest API lol, apologies for irregularities as I got help from Chat GPT. Anyhoo yeah I'm not sure about the wield image but I'll look into it here…
Ok I made a new commit, the food items are local to every campfire via the campfire's meta, and there's only one food entity registered for the campfires. There's still issues like for some reason…
Yeah I thought there must have been a better way for the entities, will do!
Everything works perfect except for when destroying the campfire while it's cooking. It doesn't drop the items on the fireplace and only removes the visual entities on the fire, however when being…