Post your modding questions here
- Nathan.S
- Member
- Posts: 1147
- Joined: Wed Sep 24, 2014 17:47
- GitHub: NathanSalapat
- IRC: NathanS21
- In-game: NathanS21
- Location: Bigsby Texas
- Contact:
Re: Post your modding questions here
Hi again, does anybody know how to setup sound for a node. I have a campfire and I want it to have a burning sound. I've looked at everything in the wiki and can't figure it out. I was able to get the fire to have sound, but it only was activated when you placed the node, so loading worlds lost all the sound, and then the sound kept playing even after the node was destroyed. I tried using the sound_stop but that always threw up a fatal error and crashed the world.
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course
Check out my website, and brand new Minetest Modding Course
- benedict424
- Member
- Posts: 29
- Joined: Thu Oct 02, 2014 06:24
- IRC: ostec
- In-game: ostec
Re: Post your modding questions here
How would I go about making a copy of a furnace with it's own recipes?
Reason: I'm making an alchemy furnace.
Reason: I'm making an alchemy furnace.
Terra, Aqua, Ignus, Air, Ather, and Incognitus.
- benedict424
- Member
- Posts: 29
- Joined: Thu Oct 02, 2014 06:24
- IRC: ostec
- In-game: ostec
Re: Post your modding questions here
What would be a good name for an element themed magic mod?
Terra, Aqua, Ignus, Air, Ather, and Incognitus.
- philipbenr
- Member
- Posts: 1897
- Joined: Fri Jun 14, 2013 01:56
- GitHub: philipbenr
- IRC: philipbenr
- In-game: robinspi
- Location: United States
Re: Post your modding questions here
modname: magichem
Name: Magichem: elemental magic
Name: Magichem: elemental magic
- benedict424
- Member
- Posts: 29
- Joined: Thu Oct 02, 2014 06:24
- IRC: ostec
- In-game: ostec
Re: Post your modding questions here
I meant Air, Ingnus, Aqua, Terra as elements.philipbenr wrote:modname: magichem
Name: Magichem: elemental magic
Terra, Aqua, Ignus, Air, Ather, and Incognitus.
- hunterdelyx1
- Member
- Posts: 27
- Joined: Fri Aug 10, 2012 02:14
Re: Post your modding questions here
*deleted*
Re: Post your modding questions here
What do you think about the name "Aether"?benedict424 wrote:I meant Air, Ingnus, Aqua, Terra as elements.philipbenr wrote:modname: magichem
Name: Magichem: elemental magic
Aristotle proposed a fifth element, aether, in addition to the four proposed earlier by Empedocles.
Earth, which is cold and dry; this corresponds to the modern idea of a solid.
Water, which is cold and wet; this corresponds to the modern idea of a liquid.
Air, which is hot and wet; this corresponds to the modern idea of a gas.
Fire, which is hot and dry; this corresponds to the modern ideas of plasma and heat.
Aether, which is the divine substance that makes up the heavenly spheres and heavenly bodies (stars and planets).
Each of the four earthly elements has its natural place. All that is earthly tends toward the center of the universe, i.e., the center of the Earth. Water tends toward a sphere surrounding the center. Air tends toward a sphere surrounding the water sphere. Fire tends toward the lunar sphere (in which the Moon orbits). When elements are moved out of their natural place, they naturally move back towards it. This is "natural motion"—motion requiring no extrinsic cause. So, for example, in water, earthy bodies sink while air bubbles rise up; in air, rain falls and flame rises.
Scan avatar or click here to read a Message of Hope (PDF)
- benedict424
- Member
- Posts: 29
- Joined: Thu Oct 02, 2014 06:24
- IRC: ostec
- In-game: ostec
Re: Post your modding questions here
Esteban wrote:What do you think about the name "Aether"?benedict424 wrote:I meant Air, Ingnus, Aqua, Terra as elements.philipbenr wrote:modname: magichem
Name: Magichem: elemental magic
Aristotle proposed a fifth element, aether, in addition to the four proposed earlier by Empedocles.
Earth, which is cold and dry; this corresponds to the modern idea of a solid.
Water, which is cold and wet; this corresponds to the modern idea of a liquid.
Air, which is hot and wet; this corresponds to the modern idea of a gas.
Fire, which is hot and dry; this corresponds to the modern ideas of plasma and heat.
Aether, which is the divine substance that makes up the heavenly spheres and heavenly bodies (stars and planets).
Each of the four earthly elements has its natural place. All that is earthly tends toward the center of the universe, i.e., the center of the Earth. Water tends toward a sphere surrounding the center. Air tends toward a sphere surrounding the water sphere. Fire tends toward the lunar sphere (in which the Moon orbits). When elements are moved out of their natural place, they naturally move back towards it. This is "natural motion"—motion requiring no extrinsic cause. So, for example, in water, earthy bodies sink while air bubbles rise up; in air, rain falls and flame rises.
For now, the 5th element is called Incognitus, but that's a great idea!
Terra, Aqua, Ignus, Air, Ather, and Incognitus.
- hunterdelyx1
- Member
- Posts: 27
- Joined: Fri Aug 10, 2012 02:14
Re: Post your modding questions here
Hello! For some reason string.char() takes "|" in regexp as char. So i can't realize alternative choosing in capturing group. Is there way to fix it?
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
Re: Post your modding questions here
I think you mean `string.match` (or `string.gsub`).hunterdelyx1 wrote:Hello! For some reason string.char() takes "|" in regexp as char. So i can't realize alternative choosing in capturing group. Is there way to fix it?
Unfortunately, no. Regexp support in Lua is pretty limited. If you need more comprehensive support, you will need an external library.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!
Check out my stuff! | Donations greatly appreciated! PayPal
Check out my stuff! | Donations greatly appreciated! PayPal
Re: Post your modding questions here
I have a doubt, does mods like pipeworks/technic work fine in multiplayer? Or they can cause lag? Im trying to make a subgame and I want to add technology, but I want that the game can be used in a server. Finally, if these are too much for a multiplayer game, is there other options out there?
Thanks in advance
EDIT: oops, this question is supposed to be on modding requests, sorry.
Thanks in advance
EDIT: oops, this question is supposed to be on modding requests, sorry.
Last edited by Esteban on Thu Oct 30, 2014 15:08, edited 1 time in total.
Scan avatar or click here to read a Message of Hope (PDF)
- hunterdelyx1
- Member
- Posts: 27
- Joined: Fri Aug 10, 2012 02:14
Re: Post your modding questions here
Oh. Yeah. Right. string.match. It's pity to hear thant. But thanks for answering.kaeza wrote:I think you mean `string.match` (or `string.gsub`).hunterdelyx1 wrote:Hello! For some reason string.char() takes "|" in regexp as char. So i can't realize alternative choosing in capturing group. Is there way to fix it?
Unfortunately, no. Regexp support in Lua is pretty limited. If you need more comprehensive support, you will need an external library.
- benedict424
- Member
- Posts: 29
- Joined: Thu Oct 02, 2014 06:24
- IRC: ostec
- In-game: ostec
a nil value on players
Code: Select all
minetest.register_tool("alchemtinker:light_wand", {
description = "light_wand",
inventory_image = "tinker_light_wand.png",
on_use = function(itemstack, user, pointed_thing)
local playerpos = minetest.player:getpos()
itemstack:add_wear(1) -- To do: Look up how the hech this thing works.
minetest.place_node({playerpos}, {name="alchemtinker:light_node"})
return itemstack
end
})
This code should place a node right where you stand, but instead it crashes.21:14:45: ERROR[main]: ServerError: /home/jack/.minetest/mods/alchemtinker/spells.lua:22: attempt to index field 'player' (a nil value)
Terra, Aqua, Ignus, Air, Ather, and Incognitus.
- benedict424
- Member
- Posts: 29
- Joined: Thu Oct 02, 2014 06:24
- IRC: ostec
- In-game: ostec
Re: Post your modding questions here
This works fine in multi-player. I've been on servers where I was suppose to test this, the contraptions break if they cause too much lag.Esteban wrote:I have a doubt, does mods like pipeworks/technic work fine in multiplayer? Or they can cause lag? Im trying to make a subgame and I want to add technology, but I want that the game can be used in a server. Finally, if these are too much for a multiplayer game, is there other options out there?
Thanks in advance
EDIT: oops, this question is supposed to be on modding requests, sorry.
Terra, Aqua, Ignus, Air, Ather, and Incognitus.
Re: Post your modding questions here
Thanks for clarifying! Anyways, I will use a simpler version known as Itest for the subgame, I will try to add missing textures and fork it to work with the industry pack. I got to say technic is awesome, but each time I try to make a simple machine (solar panel - wire - battery) It does not work. Prob I am missing a component since I made sure everything was using the same V.benedict424 wrote:This works fine in multi-player. I've been on servers where I was suppose to test this, the contraptions break if they cause too much lag.Esteban wrote:I have a doubt, does mods like pipeworks/technic work fine in multiplayer? Or they can cause lag? Im trying to make a subgame and I want to add technology, but I want that the game can be used in a server. Finally, if these are too much for a multiplayer game, is there other options out there?
Thanks in advance
EDIT: oops, this question is supposed to be on modding requests, sorry.
Scan avatar or click here to read a Message of Hope (PDF)
- AMMOnym
- Member
- Posts: 682
- Joined: Tue Sep 10, 2013 14:18
- IRC: AMMOnym
- In-game: AMMOnym
- Location: Slovakia
Re: Post your modding questions here
Can someone explain me what is wrong on this mod ?
- Attachments
-
- slender.zip
- (6.84 KiB) Downloaded 53 times
- Hybrid Dog
- Member
- Posts: 2834
- Joined: Thu Nov 01, 2012 12:46
- GitHub: HybridDog
Re: Post your modding questions here
what is api.lua good for?AMMOnym wrote:Can someone explain me what is wrong on this mod ?
Re: Post your modding questions here
you forgot to add a "dofile" to the api.lua at the beginning of the init.lua so the mob is defined. It should fix the problem. By the afternoon I will test. :)AMMOnym wrote:Can someone explain me what is wrong on this mod ?
Example:
Code: Select all
dofile(minetest.get_modpath("slender").."/api.lua")
minetest.register_node("slender:slenderwater_flowing", {
description = "Flowing Fear",
...
The api is the monster(mobs api) its purpose is to define the slender mob.Hybrid Dog wrote: what is api.lua good for?
EDIT2: I took a look at the textures, that slenderman sprite looks good! :D
Scan avatar or click here to read a Message of Hope (PDF)
- AMMOnym
- Member
- Posts: 682
- Joined: Tue Sep 10, 2013 14:18
- IRC: AMMOnym
- In-game: AMMOnym
- Location: Slovakia
Re: Post your modding questions here
It was gif :)
Thanks Esteban
Thanks Esteban
- Krock
- Developer
- Posts: 4650
- Joined: Thu Oct 03, 2013 07:48
- GitHub: SmallJoker
- Location: Switzerland
- Contact:
Re: a nil value on players
Use the given 'user' variable.benedict424 wrote:Code: Select all
on_use = function(itemstack, user, pointed_thing) local playerpos = minetest.player:getpos()
Code: Select all
local playerpos = user:getpos()
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
- AMMOnym
- Member
- Posts: 682
- Joined: Tue Sep 10, 2013 14:18
- IRC: AMMOnym
- In-game: AMMOnym
- Location: Slovakia
Re: Post your modding questions here
Is any way, how to make an invisible water ?
- DeepGaze
- Member
- Posts: 332
- Joined: Fri May 10, 2013 00:49
- GitHub: DeepGaze
- IRC: DeepGaze
- In-game: DeepGaze
- Location: Take your best guess
Re: Post your modding questions here
textures, or do you mean whilst you are inside?
- Hybrid Dog
- Member
- Posts: 2834
- Joined: Thu Nov 01, 2012 12:46
- GitHub: HybridDog
Re: Post your modding questions here
do you mean more realistic water like in sauerbraten?AMMOnym wrote:Is any way, how to make an invisible water ?
- Attachments
-
- watra.png (452.28 KiB) Viewed 923 times
- AMMOnym
- Member
- Posts: 682
- Joined: Tue Sep 10, 2013 14:18
- IRC: AMMOnym
- In-game: AMMOnym
- Location: Slovakia
Re: Post your modding questions here
Just textures. When I use an invisible texture, its white or black ...DeepGaze wrote:textures, or do you mean whilst you are inside?
- AMMOnym
- Member
- Posts: 682
- Joined: Tue Sep 10, 2013 14:18
- IRC: AMMOnym
- In-game: AMMOnym
- Location: Slovakia
Re: Post your modding questions here
No, I mean something like thisHybrid Dog wrote:do you mean more realistic water like in sauerbraten?AMMOnym wrote:Is any way, how to make an invisible water ?
Who is online
Users browsing this forum: Google [Bot] and 7 guests