- Code: Select all
minetest.register_entity("modname:cube_entity", {
physical = false,
visual = "cube",
})
You will probably want to include some textures too.
minetest.register_entity("modname:cube_entity", {
physical = false,
visual = "cube",
})
stu wrote:This should do itYour phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_entity("modname:cube_entity", {
physical = false,
visual = "cube",
})
You will probably want to include some textures too.
inv:remove_item("main", "default:dirt 99")
D00Med wrote:@ABJ: That would really be great :D
@Killerz: You can use textures from other peoples mods, as long as you include the license and give credit, (and anything else specified by the license). For example, if I was to use the default_stone.png texture from minetest_game you would have to include this in the license.txt or readme: "default_stone.png from Cisoun's WTFPL texture pack", and also include a copy of the WTFPL license .
You can also make them yourself. Paint is ok, but it's a lot easier with more advanced programs like GIMP or GFIE.
There is a list of groups here: http://dev.minetest.net/Groups
And you can make your own groups, just by adding them to the list of groups for a node. For example, in my witchcraft mod, I added the potions group just by making potions belong to the group potions=1
D00Med wrote:@ABJ: That would really be great :D
@Killerz: You can use textures from other peoples mods, as long as you include the license and give credit, (and anything else specified by the license). For example, if I was to use the default_stone.png texture from minetest_game you would have to include this in the license.txt or readme: "default_stone.png from Cisoun's WTFPL texture pack", and also include a copy of the WTFPL license .
You can also make them yourself. Paint is ok, but it's a lot easier with more advanced programs like GIMP or GFIE.
There is a list of groups here: http://dev.minetest.net/Groups
And you can make your own groups, just by adding them to the list of groups for a node. For example, in my witchcraft mod, I added the potions group just by making potions belong to the group potions=1
ynong123 wrote:How to read password that hashed with minetest.get_password_hash() ?
Killerz wrote:Another nooby question but......How do licences work?
2016-07-17 17:51:15: ERROR[Main]: ModError: Failed to load and run script from /home/../mods/vg_extra/default_extra/init.lua:
2016-07-17 17:51:15: ERROR[Main]: /home/../builtin/game/register.lua:62: Name default:stone does not follow naming conventions: "default_extra:" or ":" prefix required
2016-07-17 17:51:15: ERROR[Main]: stack traceback:
2016-07-17 17:51:15: ERROR[Main]: [C]: in function 'error'
2016-07-17 17:51:15: ERROR[Main]: /home/../builtin/game/register.lua:62: in function 'check_modname_prefix'
2016-07-17 17:51:15: ERROR[Main]: /home/../builtin/game/register.lua:110: in function 'register_item'
2016-07-17 17:51:15: ERROR[Main]: /home/../builtin/game/register.lua:177: in function 'register_node'
2016-07-17 17:51:15: ERROR[Main]: ...minetest/bin/../games/Voxelgarden/mods/default/nodes.lua:7: in main chunk
2016-07-17 17:51:15: ERROR[Main]: [C]: in function 'dofile'
2016-07-17 17:51:15: ERROR[Main]: ...mes/minetest/bin/../mods/vg_extra/default_extra/init.lua:7: in main chunk
Users browsing this forum: No registered users and 3 guests