by orwell » Mon Nov 23, 2015 11:50
The item metadata string is useful for some mods, but it is not used by the engine itself.
There should be a way to override some properties of the item definition with item metadata.
For example, the item name should be changeable, to allow for named swords used in story maps or such things, same goes for damage groups of tools.
Edit: I forgot item enchantments! (or similar stuff)
To do this, it is necessary to transform the metadata string into a table. For the save format, nothing has to be changed, since that table can be serialized. It is some work to keep compatibility to the string metadata, but it should be possible.
Another suggestion: add another special damage/armor group to provide knockback functionality. Knockback in damage group tells how far entities are knocked back, armor group is knockback resistance. This would provide smoother knockback effects on client, since this can be implemented client-side.
(entities not having knockback armor group just don't get knocked back)
Last edited by
orwell on Sat Jan 02, 2016 16:11, edited 1 time in total.
Lua is great!
List of my modsI like singing. I like dancing. I like ... niyummm...