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:
5
api.txt
5
api.txt
@ -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.
|
||||
|
Reference in New Issue
Block a user