ostermine
2a01cfc5b1
add can_be_placed block event
...
can_be_placed(x, y, z, playerid, rotation) is called before a player
places the block, after the built-in checks (replaceability, grounded,
entities). The block is placed only if the function returns true.
rotation is the rotation the block is going to be placed with, so
blocks like ladders can check the block they are attached to.
The event is not called for block.place / block.set.
Closes #909
2026-10-10 15:54:21 +03:00
MihailRis
219d9e5ea4
update doc/*/scripting/events.md
2026-08-11 17:25:02 +03:00
Xertis
acf8112644
rename events + fix
2026-04-08 21:44:17 +03:00
Xertis
518d5d5ae4
Add on_entity_spawned and on_entity_despawned events
2026-04-04 01:53:49 +03:00
Xertis
8b66b8890a
doc fixes
2026-04-02 23:43:09 +03:00
Xertis
4f80a56362
Update en/events.md
2026-03-23 00:28:57 +03:00
Xertis
b707c18931
doc update
2026-03-23 00:23:04 +03:00
MihailRis
c435c6080a
swap 'action' and 'mode' on_inventory_interact arguments & minor refactor
2026-03-16 19:52:24 +03:00
Xertis
8ae35c0a5e
rewriting on_inventory_interact
2026-03-16 00:53:57 +03:00
MihailRis
77b55291da
document tick-interval
2025-12-04 17:35:39 +03:00
MihailRis
b1312c354d
update doc/*/scripting/events.md
2025-11-18 22:18:56 +03:00
MihailRis
b3e5f2a1c0
update doc/*/scripting/events.md
2025-11-18 20:58:12 +03:00
MihailRis
934c5f194e
fix: on_hud_render is not documented
2025-11-04 15:50:52 +03:00
MihailRis
a1177f2601
update doc/*/scripting/events.md & add 'tps' argument
2025-09-15 00:31:38 +03:00
MihailRis
918cb8aa32
update doc/*/scripting/events.md
2025-01-12 19:43:06 +03:00
MihailRis
13cbe3fb17
update doc/*/events.md
2024-12-01 10:37:27 +03:00
MihailRis
f2e7a54180
add on_replaced block event and on_block_replaced world event
2024-11-22 12:31:45 +03:00
MihailRis
3cd3fe94de
update doc/*/scripting/events.md
2024-11-21 07:25:31 +03:00
MihailRis
f6f82644d4
add on_block_interact world event
2024-11-05 13:55:07 +03:00
MihailRis
e762cf9b23
add events.reset
2024-11-01 17:18:12 +03:00
MihailRis
9444fa7937
update doc/*/scripting/events.md
2024-11-01 15:15:48 +03:00
MihailRis
a47bdc0409
update doc/*/scripting/events.md
2024-11-01 15:14:25 +03:00
MihailRis
b108c4710d
update events.md
2024-10-23 13:38:53 +03:00
MihailRis
d6696b54cb
add 'normal' argument to on_use_on_block event
2024-07-29 15:23:04 +03:00
MihailRis
fc64d04333
add doc/en/scripting/events.md
2024-06-13 19:08:46 +03:00