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

Place / rotate block actions

Umbrella

Refugee
Hello,

When placing a block, we have 2 actions (place it and rotate). I would like a third action that rotates counter_clockwise.

1) Weapons in the xml have 2 actions, triggered by eg left and right click. Can we add a third action ? How to make it trigger with eg shift+click ?

2) I can find the action to place a minibike (in items.xml), but I can't find the action to plant a seed (only seed recipe in items.xml) or a frame/block. Where are these defined ?

About seeds, I see

<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="plantedCotton1" operation="set" value="1"/>
where is the base plantedCotton1 action defined ?

3) Is there some variable incremented when I rotate the block, that I could decrement in my counter_clockwise rotation ?

Thanl you !

 
Last edited by a moderator:
Back
Top