derpswa99 wrote:How do I use the "minetest.item_place_node" function?
on_use = function(itemstack, user, pointed_thing)
itemstack:add_wear(100)
user:set_wielded_item(itemstack)
end,
stu wrote:How can I make a tool item wear when used pointing at nothing?
I tried this but is does not seem to have any effect.Your 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
on_use = function(itemstack, user, pointed_thing)
itemstack:add_wear(100)
user:set_wielded_item(itemstack)
end,
PilzAdam wrote:on_use is only called when pointing at something.
(changes will need to be "committed" by calling object:set_wielded_item(modifiedStack)
PilzAdam wrote:Oh, it was on_place() that was only called when pointing at something, sorry, my bad.
You should try return itemstack instead of set_wielded_item().
replacements = { ... with ... }Do you expect someone to write the mod for you? Get started and post any questions you have.AMMOnym wrote:How i can make throwing (like throwing mod) from block, then i punch block and block throw something.??:_?:?
minetest.add_particlespawner(amount, time,
minpos, maxpos,
minvel, maxvel,
minacc, maxacc,
minexptime, maxexptime,
minsize, maxsize,
collisiondetection, texture, playername)Casimir wrote:Can someone make a tutorial on how to use particles/the particle spawner? The api txt is just confusing me.

D0431791 wrote:Topic: When Minetest allows custom crafting type?
Reason: I want to make a machine that works like the furnaces cooking/smelting but with different output.
More Info(optional):
http://img716.imageshack.us/img716/5364/pwcl.png
Transparent woods and bricks
Hybrid Dog wrote:addi wrote:how must i set up the particle spawner to add particles like this:
http://www.king-arthur.eu/gallery/image.php?album_id=2&image_id=138&mode=thumbnailYour 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.add_particlespawner(amount, time,
minpos, maxpos,
minvel, maxvel,
minacc, maxacc,
minexptime, maxexptime,
minsize, maxsize,
collisiondetection, texture, playername)Your 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.add_particlespawner(
3, --amount
0.1, --time
pos, --minpos
pos, --maxpos
{x=0, y=3, z=0}, --minvel
{x=0, y=4, z=0}, --maxvel
{x=-4,y=-4,z=-4}, --minacc
{x=4,y=-4,z=4}, --maxacc
0.1, --minexptime
1, --maxexptime
2, --minsize
8, --maxsize
false, --collisiondetection
"smoke_puff.png" --texture
)
derpswa99 wrote:Can someone tell the correct furnace definition and what I can customize within the code. Also please don't link the development wiki because it honestly doesn't assist in any way especially with functions.
Krock wrote:derpswa99 wrote:Can someone tell the correct furnace definition and what I can customize within the code. Also please don't link the development wiki because it honestly doesn't assist in any way especially with functions.
the name of it is: default:furnace
All nodes/blocks/cubes acn you find in the folder games\Minetest_game\mods\default\ (nodes.lua?)
wcwyes wrote:wcwyes wrote:How do I check for hostile mobs around me?
Can anyone help me?
PilzAdam wrote:I personally dont think its confusing... could you tell me your problems with it, so it would be easier to write the tutorial?
try replacing nil with 1Hybrid Dog wrote:Could anyone tell me why my rocket bag doesn't work?
https://raw.github.com/HybridDog/extrablocks/master/mvmt.lua
brunob.santos wrote:I created a mod. I used the following materials: "https://github.com/minetest/minetest/blob/master/doc/lua_api.txt".I used the "C + +"
My problem is that I do not know which license should I describe in my mod.
Someone tell me what I should by? do not quite understand it yet.
brunob.santos wrote:My problem is that I do not know which license should I describe in my mod.
addi wrote:on this page you can choose (create) ur own license http://creativecommons.org/choose/
brunob.santos wrote:I really do not understand how will the license. I created the mod and just want everyone to use it. I post the forum "Modding Geral"?
Users browsing this forum: No registered users and 3 guests