6842 Commits

Author SHA1 Message Date
cora
636148dca3 Fix magma blocks dealing damage on every step 2024-12-10 16:18:06 +00:00
Elias Åström
c243c9719f Revert "only update relevant neighbours"
This reverts commit 197b53d557cc950e25abd57b9d6bcf9f9b0adefe.
2024-12-09 18:21:56 +01:00
Elias Åström
f84490df32 Revert "optimize redstone wire propagation"
This reverts commit 04a4ccde3dd6e6e20709c33175b7b738400d50b3.
2024-12-09 18:21:54 +01:00
goblin_mode
95515aded6 make copper bulbs not opaque 2024-12-09 14:18:48 +00:00
goblin_mode
04a4ccde3d optimize redstone wire propagation 2024-12-09 14:17:00 +00:00
goblin_mode
197b53d557 only update relevant neighbours 2024-12-09 14:17:00 +00:00
Jürgen Rühle
649a08a51c Make iterating keys explicit by always declaring two loop variables 2024-12-09 14:09:41 +00:00
Elias Åström
c3ed869498 Make wires connect to redstone blocks 2024-12-09 14:04:28 +00:00
Elias Åström
65d30fe48c Rename pp_on_timer to update_pp 2024-12-09 12:57:28 +00:00
Elias Åström
3c9f9b150a Use _on_walk_through for pressureplates 2024-12-09 12:57:28 +00:00
Po Lu
75cb7e5afa ; Fix default floor level of cauldrons
* mods/ITEMS/mcl_cauldrons/init.lua (create_cauldron_nodebox):
Fix copy-editing error.
2024-12-07 16:56:47 +08:00
cora
0934101120 Check if node actually is a cauldron before trying to add a level 2024-12-03 16:57:48 +00:00
cora
2c39e6de21 check position protection when washing banners in cauldron 2024-12-03 16:57:48 +00:00
cora
79753b79b5 Check position protection when washing leather armor 2024-12-03 16:57:48 +00:00
cora
f6cbaf9101 Make dripstone water use mcl_cauldrons.add_level function 2024-12-03 16:57:48 +00:00
cora
6089b99496 use new mcl_cauldrons.add_level for dripstone lava 2024-12-03 16:57:48 +00:00
cora
3e64d11b7d Check protection before clearing shulker in cauldron 2024-12-03 16:57:48 +00:00
cora
8751343648 Use core instead of minetest in mcl_cauldrons 2024-12-03 16:57:48 +00:00
cora
23001ffd8e Use mcl_redstone.swap_node for cauldrons 2024-12-03 16:57:48 +00:00
cora
483d9b159c Only allow fillin partially filled cauldrons with the same liquid 2024-12-03 16:57:48 +00:00
cora
ef0b3a96aa Make buckets fully use new cauldrons api 2024-12-03 16:57:48 +00:00
cora
adfda04b01 Fix typo get_caulrdon_name -> get_cauldron_name 2024-12-03 16:57:48 +00:00
cora
3eedcf194a Implement clearing dyed shulker boxes on cauldrons 2024-12-03 16:57:48 +00:00
cora
45e89d2f42 Subtract a cauldron water level when washing leather armor 2024-12-03 16:57:48 +00:00
cora
a76505bc33 Make empty water bottle use cauldron API functions 2024-12-03 16:57:48 +00:00
cora
0ae5236323 Make mcl_banners use cauldron add_water_level function 2024-12-03 16:57:48 +00:00
cora
42a8647ee0 Simplify cauldron nodebox function a bit 2024-12-03 16:57:48 +00:00
cora
98e8db267b Add item group to determine if a cauldron contains water 2024-12-03 16:57:48 +00:00
cora
19590390de Add convenience API functions for mcl_cauldrons 2024-12-03 16:57:48 +00:00
Po Lu
607fc28abf Port Fence Gates to mcl_redstone
* mods/ITEMS/mcl_fences/init.lua (tpl_fence_gates)
(tpl_fence_gates_open): Port mesecons effector definitions to
mcl_redstone.
2024-12-03 02:52:34 +00:00
Jürgen Rühle
efbf928807 Small fixup for lectern without book
Fix typo to restore redstone connectivity and use mcl_redstone.swap_node to
force a comparator update when placing a book.
2024-12-02 13:03:00 +00:00
Elias Åström
803bb6cd4f Make wires connect to pistons 2024-12-02 02:03:01 +00:00
Po Lu
a56f365621 Improve end gateway teleportation
* mods/ITEMS/mcl_portals/portal_gateway.lua (gateway_teleport):
Export `teleport'.

* mods/ITEMS/mcl_throwing/register.lua
(check_gateway_teleportation): New function.
(pearl_on_step): Teleport thrower through any gateway traversed
by this pearl.
2024-12-01 17:10:46 +00:00
Elias Åström
2c32904807 Run update-tr.sh 2024-11-30 23:07:56 +01:00
The_Pamps
46cff037e7 Fix slow falling velocity.
-Changed line 427 from object:add_velocity(vector.new(0,-3-vel.y,0)) to object:add_velocity(vector.new(0,-0.05*vel.y,0)), this resolves the issue of the slow falling effect flinging the player upwards if they were falling too fast when the effect activates.
2024-11-29 22:58:16 +00:00
Jürgen Rühle
33287ce95a Implement lectern support in comparator 2024-11-29 22:49:56 +00:00
Jürgen Rühle
0712959c31 Use mcl_redstone.register_action instead of overriding set/swap_node 2024-11-29 22:49:56 +00:00
Jürgen Rühle
93542d2258 Introduce mcl_redstone.register_action
This provides a callback mechanism when specific nodes are updated by the
redstone update logic, independent from actual redstone power level
changes.
2024-11-29 22:49:56 +00:00
Jürgen Rühle
2f0fe146eb Fix copper bulb comparator_signal 2024-11-29 22:49:56 +00:00
Jürgen Rühle
922b90d1a3 Support comparator_signal = 0
Comparators should read unlit copper bulbs as power level 0 even if
powered.
2024-11-29 22:49:56 +00:00
Jürgen Rühle
697618d303 WIP: support nodes with comparator_signal group
This is pretty heavy handed with overloading set_node and swap_node which
is probably not acceptable. But everything else would require a sizable
refactoring of the measured node and its interaction with other items.
2024-11-29 22:49:56 +00:00
Jürgen Rühle
c99496f22c Add brewing stand nodes to comparator measure tab in after_mods_loaded
Also document nodes being added to measure_tab using after_mods_loaded.
2024-11-29 22:49:56 +00:00
Jürgen Rühle
6739ac904a Document comparator TODOs
List all blocks that need to be supported.
2024-11-29 22:49:56 +00:00
Jürgen Rühle
5e4911c89f Implement brewing stand inventory measurement in comparator 2024-11-29 22:49:56 +00:00
Jürgen Rühle
be4ae94c10 Implement furnace inventory measurement in comparator 2024-11-29 22:49:56 +00:00
Jürgen Rühle
4ac8516ff5 Implement barrel inventory measurement in comparator 2024-11-29 22:49:56 +00:00
Jürgen Rühle
852782bc93 Implement double chest inventory measurement in comparator 2024-11-29 22:49:56 +00:00
Jürgen Rühle
5a3529c3e5 Implement shulker box inventory measurement in comparator
Trigger comparator update on inventory changes. Shulker boxes additionally
need to trigger comparator update after being placed, because inventory may
not be empty. While at it, clean up shulker inventory restoration a bit.
2024-11-29 22:49:56 +00:00
Jürgen Rühle
7693868f57 Implement dispenser/dropper inventory measurement in comparator 2024-11-29 22:49:56 +00:00
Jürgen Rühle
0f47d6fd51 Update comparator when a measurable block is dug 2024-11-29 22:49:56 +00:00