Hello,
A new update was released today, introducing a lot of new scripting options for custom items, weapons, and powers!
Here is a summary of the new scripting features:
New Syntax:
function <name>
…
end
if <condition> then
…
end
New accessors:
entity.blockx - entity.blocky - entity.blockz
entity.targetx - entity.targety - entity.targetz
entity.type
entity.typeid
entity.name
New Commands:
- call calls a function previously defined
- spawnMob spawns a mob (wolf, thief…)
- spawnItem spawns an item/weapon (chest, sword, custom item…)
- placeBlock places a block of specified type in the world
- removeBlock removes a block
- spawnSchematic paste a building to the world
- timer sets a timer to call a function after some time
- raycast cast a ray to find the first block in the looking direction
- display shows messages with custom style on screen
- …
A full guide of all commands will be available soon here:
http://steamcommunity.com/sharedfiles/filedetails/?id=703608909Other news:
- You can now update your custom items/weapon on workshop
- Effects now follow the item correctly (for example you can create a Fire Sword, see below)
- Mobs spawn less frequently during the day and more during the night
- New shortcut to rotate a block when placing it: press R
- Bug fixes
Thanks again for your support, the next update will focus on more content and new mobs!