• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

How to change block in safe zone through event?

myav

Refugee
I want to change doors in a safe zone to other type of blocks. As example, on cobblestoneShapes.

And vanilla events have these 2 actions:

Code:
<action class="GetLandClaimPosition" />

<action class="BlockReplace">
    <property name="target_position" value="0, 0, 0" /> (i have tried without this row too)
    <property name="offset_type" value="Relative" />
    <property name="min_offset" value="-5,-3,-5" />
    <property name="max_offset" value="5,5,5" />
    <property name="spacing" value="1" />
    <property name="block_tags" value="door" />
    <property name="block_to" value="cobblestoneShapes" />
    <property name="safe_allowed" value="true" />
</action>

And is written: GetLandClaimPosition - Sets a target point for the nearby land claim.
But this dosen't work.... Target point dosen't set for the nearby land claim.

So my question is - is it possible to make your own land claim as a target (for future event actions)? or not?

Why when i use "GetLandClaimPosition" that to "<action class="DestroySafeZone">" all is works and land claim can be targeted
But when i use the same "GetLandClaimPosition" that then to <action class="BlockReplace"> it dosen't work ((

Please help with explanation how to write correct event with block replacing in a safe zone ?
 
Last edited:
Back
Top