- Made the amount of time a campfire is lit data-driven. By default, the campfire is lit for 2 minutes. To change the time, make a datapack for the
data/realistic-campfires/campfire/time/
directory withtime.json
file in this directory with the following data:
{
"minutes": int,
"seconds": int
}
Note that both these values are optional. If the added time of minutes
and seconds
exceeds 300
seconds, then it will be capped to 300
seconds, or 5 minutes
.
-
Made it so you can place another log on the campfire, even if it is already lit. Before being extinguished, the game will check the campfire's state to light it on fire again.
-
Added custom textures and models if the campfire is lit and there is a log in it
Several changes have been made to this mod to increase realism and change mechanics.
Additions:
- Rain will extingish the campfire
- Water will extingish the campfire if it is one block above the campfire
- The number of logs in the main hand stack will not be consumed if the player is in creative mode
Changes:
- Logs are placed on the campfire by right clicking with a log in the main hand instead of pressing
Q
to drop the log. You still pick up the log by doingright click + shift
with no item in your main hand.
- Update to 1.20.5 (works for 1.20.6)
If you have any issues with this version, please report them here.
This update includes the compatibility with other mods by changing the following feature:
-
When a log is placed on a campfire, it will store the log in the block entity class of the block, instead of a blockstate. This allows other mods' blocks (with
log
in the name) to drop a log onto the campfire.note: a drawback is the texture for a mod's block cannot be loaded as part of the campfire model due to limitations with blockstates. instead, it will fallback onto the oak log from Minecraft.
If you have any issues with this version, please report them here. Much thanks!