1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-06-28 06:30:18 +02:00

add reach option to replace function.

This commit is contained in:
tenplus1
2024-11-13 11:04:27 +00:00
parent 1b1f681886
commit 39f9f8df31
2 changed files with 14 additions and 5 deletions

View File

@ -289,11 +289,12 @@ eating.
y offset by using this instead:
{
{"group:grass", "air", 0},
{"default:dirt_with_grass", "default:dirt", -1}
{"default:dirt_with_grass", "default:dirt", -1, 0}
}
'replace_with' replace with what e.g. "air" or in chickens case "mobs:egg"
'replace_rate' how random should the replace rate be (typically 10)
'replace_offset' +/- value to check specific node to replace
'replace_offset' +/- y offset value to check specific node to replace
'reach' horizontal reach around mob for replace, default is 0
'on_replace(self, pos, oldnode, newnode)' is called when mob is about to
replace a node.