Post your modding questions here

User avatar
Lone_Wolf
Member
 
Posts: 2157
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

Re: Post your modding questions here

by Lone_Wolf » Mon Apr 17, 2017 13:53

cx384 wrote:
Lone_Wolf wrote:I edited the texture for the nyancat sword (nyancatsplus mod) in windows Paint and in the game there's white in the place of the transparent background I was aiming for. I've been able to get transparent backrounds with paint before (Making a skin for MineBlocks). Any suggestions?

Use gimp!
https://www.gimp.org/

Thanks! (I had heard of it before but was too lazy to download)...
 

User avatar
Lone_Wolf
Member
 
Posts: 2157
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

Re: Post your modding questions here

by Lone_Wolf » Mon Apr 17, 2017 13:58

One more question for now: What is fleshy dmg? I set it to 9999999999999 on the nyancat sword and it wouldn't deal dmg at all. (I have NO idea how to code in 'lua')
 

User avatar
azekill_DIABLO
Member
 
Posts: 7479
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: Post your modding questions here

by azekill_DIABLO » Mon Apr 17, 2017 16:49

please post the nyansword code, i'll show you what to modify. and this value exceeds binary capacity
 

User avatar
Lone_Wolf
Member
 
Posts: 2157
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

Re: Post your modding questions here

by Lone_Wolf » Mon Apr 17, 2017 17:54

Here's the whole thing, I couldn't figure out how to separate it without ruining something. I modified the other tools too the pickaxe heals 392841 or something before bringing the health to zero.
Code: Select all
minetest.register_craftitem("nyancats_plus:rainbow_shard", {
   description = "Rainbow shard",
   inventory_image = "rainbow_shard.png",
})
minetest.register_craft({
   output = 'nyancats_plus:rainbow_shard 9',
   recipe = {
      {"default:nyancat_rainbow"},
   }
})
minetest.register_tool("nyancats_plus:rainbow_pick",{
   description = "Rainbow Pickaxe",
   inventory_image = "rainbow_pick.png",
   tool_capabilities = {
      full_punch_interval = 0.7,
      max_drop_level=3,
      groupcaps={
         cracky = {times={[1]=1.0, [2]=0.7, [3]=0.25}, uses=0},
      },
      damage_groups = {fleshy=-9999},
   },
})
minetest.register_tool("nyancats_plus:rainbow_shovel", {
   description = "Rainbow Shovel",
   inventory_image = "rainbow_shovel.png",
   wield_image = "rainbow_shovel.png^[transformR90",
   tool_capabilities = {
      full_punch_interval = 0.8,
      max_drop_level=1,
      groupcaps={
         crumbly = {times={[1]=0.8, [2]=0.3, [3]=0.1}, uses=0, maxlevel=5},
      },
      damage_groups = {fleshy=9},
   },
})

minetest.register_tool("nyancats_plus:rainbow_axe", {
   description = "Rainbow Axe",
   inventory_image = "rainbow_axe.png",
   tool_capabilities = {
      full_punch_interval = 0.7,
      max_drop_level=1,
      groupcaps={
         choppy={times={[1]=1.9, [2]=0.70, [3]=0.30}, uses=0, maxlevel=5},
      },
      damage_groups = {fleshy=9},
   },
})
minetest.register_tool("nyancats_plus:rainbow_sword", {
   description = "Diamond Sword",
   inventory_image = "rainbow_sword.png",
   tool_capabilities = {
      full_punch_interval = 0.6,
      max_drop_level=1,
      groupcaps={
         snappy={times={[1]=1.70, [2]=0.70, [3]=0.10}, uses=0, maxlevel=5},
      },
      damage_groups = {fleshy=15},
   }
})
farming.register_hoe("nyancats_plus:rainbow_hoe", {
   description = "Rainbow Hoe",
   inventory_image = "rainbow_hoe.png",
   max_uses = 0,
   recipe = {
      {"nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard"},
      {"", "group:stick"},
      {"", "group:stick"},
   }
})

minetest.register_craft({
   output = "nyancats_plus:rainbow_pick",
   recipe = {
      {"nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard"},
      {'', 'group:stick', ''},
      {'', 'group:stick', ''},
   }
})

minetest.register_craft({
   output = "nyancats_plus:rainbow_shovel",
   recipe = {
      {"", "nyancats_plus:rainbow_shard", ""},
      {'', 'group:stick', ''},
      {'', 'group:stick', ''},
   }
})
minetest.register_craft({
   output = "nyancats_plus:rainbow_shovel",
   recipe = {
      {"", "nyancats_plus:rainbow_shard", ""},
      {'', 'group:stick', ''},
      {'', 'group:stick', ''},
   }
})
minetest.register_craft({
   output = "nyancats_plus:rainbow_axe",
   recipe = {
      {"nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard", ""},
      {"nyancats_plus:rainbow_shard", 'group:stick', ''},
      {'', 'group:stick', ''},
   }
})
minetest.register_craft({
   output = "nyancats_plus:rainbow_sword",
   recipe = {
      {"", "nyancats_plus:rainbow_shard", ""},
      {'', "nyancats_plus:rainbow_shard", ''},
      {'', 'group:stick', ''},
   }
})

Someone needs to make a mod that lets you turn the nyancat into poptarts that restore hunger, max out health, and give you some permanent special abilities.
[Edit] How do I change the mining rate for the tools? I want them to immediately mine the nodes they are tasked to mine.
 

User avatar
Lone_Wolf
Member
 
Posts: 2157
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

Re: Post your modding questions here

by Lone_Wolf » Wed Apr 19, 2017 06:52

I downloaded GIMP and edited the NyanCat sword texture but Mintest couldn't read the file...
 

User avatar
cx384
Member
 
Posts: 498
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

Re: Post your modding questions here

by cx384 » Wed Apr 19, 2017 08:55

Lone_Wolf wrote:I downloaded GIMP and edited the NyanCat sword texture but Mintest couldn't read the file...

You have to export the image as ".png". I think the hotkey is ctrl + e.
Can your read this?
 

User avatar
Lone_Wolf
Member
 
Posts: 2157
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

Re: Post your modding questions here

by Lone_Wolf » Wed Apr 19, 2017 15:16

cx384 wrote:
Lone_Wolf wrote:I downloaded GIMP and edited the NyanCat sword texture but Mintest couldn't read the file...

You have to export the image as ".png". I think the hotkey is ctrl + e.

Yes I saw that but didn't see a setting in the optionssoI assumed It couldn't do '.png'
 

User avatar
burli
Member
 
Posts: 1635
Joined: Fri Apr 10, 2015 13:18

Re: Post your modding questions here

by burli » Wed Apr 19, 2017 17:09

How can I force or simulate server lag? I want to test something in extreme situations
 

User avatar
Lone_Wolf
Member
 
Posts: 2157
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

Re: Post your modding questions here

by Lone_Wolf » Wed Apr 19, 2017 17:13

burli wrote:How can I force or simulate server lag? I want to test something in extreme situations

Download nssm and AITechI's NPC mod and use them both at the same time. I go at 0 FPS when I do that, (For me anyway) although I felt like it was -10 FPS.
 

User avatar
Lone_Wolf
Member
 
Posts: 2157
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

Re: Post your modding questions here

by Lone_Wolf » Wed Apr 19, 2017 17:15

burli wrote:How can I force or simulate server lag? I want to test something in extreme situations

Or you could try spamming the chat for a few minutes. (I personally don't think it works that well but others have said it does, NOTE I never spam unless it's to get myself read over the chat flooding of other players)
 

sofar
Developer
 
Posts: 2015
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Post your modding questions here

by sofar » Wed Apr 19, 2017 19:14

burli wrote:How can I force or simulate server lag? I want to test something in extreme situations


You can do this without pissing off everyone on the server, with `netem`

`netem` allows you to insert a `fake lag` between you and the server. It works on Linux, obviously, only.

https://wiki.linuxfoundation.org/networking/netem#emulating-wide-area-network-delays
 

User avatar
burli
Member
 
Posts: 1635
Joined: Fri Apr 10, 2015 13:18

Re: Post your modding questions here

by burli » Wed Apr 19, 2017 19:38

I don't want to piss off everyone because I just want to piss off myself on my local machine. And I think more about a delay function in a globalstep or something, so something that really acts like too many heavy installed mods, but more reliable.
 

sofar
Developer
 
Posts: 2015
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Post your modding questions here

by sofar » Wed Apr 19, 2017 19:46

burli wrote:I don't want to piss off everyone because I just want to piss off myself on my local machine. And I think more about a delay function in a globalstep or something, so something that really acts like too many heavy installed mods, but more reliable.


netem *is* reliable lag. It even works on the `lo` interface so you can play on your local machine as if the machine is on the other side of the world through a satellite uplink with 2.0 seconds of lag.

You can even program it to give *random* lag, too.
 

User avatar
burli
Member
 
Posts: 1635
Joined: Fri Apr 10, 2015 13:18

Re: Post your modding questions here

by burli » Wed Apr 19, 2017 19:55

But there is a difference between connection lag and execution lag. Or is that the same?

But thanks for the link. It's interesting anyway
 

Byakuren
Member
 
Posts: 816
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri
In-game: Raymoo + Clownpiece

Re: Post your modding questions here

by Byakuren » Wed Apr 19, 2017 21:39

burli wrote:But there is a difference between connection lag and execution lag. Or is that the same?

But thanks for the link. It's interesting anyway

You could run a big loop in a global step. Like increment a variable a billion times or something.
Every time a mod API is left undocumented, a koala dies.
 

sofar
Developer
 
Posts: 2015
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Post your modding questions here

by sofar » Wed Apr 19, 2017 22:55

Byakuren wrote:
burli wrote:But there is a difference between connection lag and execution lag. Or is that the same?

But thanks for the link. It's interesting anyway

You could run a big loop in a global step. Like increment a variable a billion times or something.


execution lag is when the server is too busy. If you have execution lag, you've basically lost already, because at that point your server is just unplayable, and players will leave. If you have execution lag, there's not much you could do except spend more money.

network lag is real, though, and unavoidable.

Execution lag is really hard, because stuff happens in various points in time. Try adding sleeps if that is really what you want:

http://lua-users.org/wiki/SleepFunction
 

User avatar
azekill_DIABLO
Member
 
Posts: 7479
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: Post your modding questions here

by azekill_DIABLO » Thu Apr 20, 2017 09:02

Code: Select all
minetest.register_craftitem("nyancats_plus:rainbow_shard", {
   description = "Rainbow shard",
   inventory_image = "rainbow_shard.png",
})
minetest.register_craft({
   output = 'nyancats_plus:rainbow_shard 9',
   recipe = {
      {"default:nyancat_rainbow"},
   }
})
minetest.register_tool("nyancats_plus:rainbow_pick",{
   description = "Rainbow Pickaxe",
   inventory_image = "rainbow_pick.png",
   tool_capabilities = {
      full_punch_interval = 0.7,
      max_drop_level=3,
      groupcaps={
         cracky = {times={[1]=1.0, [2]=0.7, [3]=0.25}, uses=0},
      },
      damage_groups = {fleshy=9999},
   },
})
minetest.register_tool("nyancats_plus:rainbow_shovel", {
   description = "Rainbow Shovel",
   inventory_image = "rainbow_shovel.png",
   wield_image = "rainbow_shovel.png^[transformR90",
   tool_capabilities = {
      full_punch_interval = 0.8,
      max_drop_level=1,
      groupcaps={
         crumbly = {times={[1]=0.8, [2]=0.3, [3]=0.1}, uses=0, maxlevel=5},
      },
      damage_groups = {fleshy=9},
   },
})

minetest.register_tool("nyancats_plus:rainbow_axe", {
   description = "Rainbow Axe",
   inventory_image = "rainbow_axe.png",
   tool_capabilities = {
      full_punch_interval = 0.7,
      max_drop_level=1,
      groupcaps={
         choppy={times={[1]=1.9, [2]=0.70, [3]=0.30}, uses=0, maxlevel=5},
      },
      damage_groups = {fleshy=9},
   },
})
minetest.register_tool("nyancats_plus:rainbow_sword", {
   description = "Diamond Sword",
   inventory_image = "rainbow_sword.png",
   tool_capabilities = {
      full_punch_interval = 0.6,
      max_drop_level=1,
      groupcaps={
         snappy={times={[1]=1.70, [2]=0.70, [3]=0.10}, uses=0, maxlevel=5},
      },
      damage_groups = {fleshy=15},
   }
})
farming.register_hoe("nyancats_plus:rainbow_hoe", {
   description = "Rainbow Hoe",
   inventory_image = "rainbow_hoe.png",
   max_uses = 0,
   recipe = {
      {"nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard"},
      {"", "group:stick"},
      {"", "group:stick"},
   }
})

minetest.register_craft({
   output = "nyancats_plus:rainbow_pick",
   recipe = {
      {"nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard"},
      {'', 'group:stick', ''},
      {'', 'group:stick', ''},
   }
})

minetest.register_craft({
   output = "nyancats_plus:rainbow_shovel",
   recipe = {
      {"", "nyancats_plus:rainbow_shard", ""},
      {'', 'group:stick', ''},
      {'', 'group:stick', ''},
   }
})
minetest.register_craft({
   output = "nyancats_plus:rainbow_shovel",
   recipe = {
      {"", "nyancats_plus:rainbow_shard", ""},
      {'', 'group:stick', ''},
      {'', 'group:stick', ''},
   }
})
minetest.register_craft({
   output = "nyancats_plus:rainbow_axe",
   recipe = {
      {"nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard", ""},
      {"nyancats_plus:rainbow_shard", 'group:stick', ''},
      {'', 'group:stick', ''},
   }
})
minetest.register_craft({
   output = "nyancats_plus:rainbow_sword",
   recipe = {
      {"", "nyancats_plus:rainbow_shard", ""},
      {'', "nyancats_plus:rainbow_shard", ''},
      {'', 'group:stick', ''},
   }
})


damage value must be positive to damage things!
 

User avatar
Lone_Wolf
Member
 
Posts: 2157
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

Re: Post your modding questions here

by Lone_Wolf » Thu Apr 20, 2017 16:10

azekill_DIABLO wrote:
Code: Select all
minetest.register_craftitem("nyancats_plus:rainbow_shard", {
   description = "Rainbow shard",
   inventory_image = "rainbow_shard.png",
})
minetest.register_craft({
   output = 'nyancats_plus:rainbow_shard 9',
   recipe = {
      {"default:nyancat_rainbow"},
   }
})
minetest.register_tool("nyancats_plus:rainbow_pick",{
   description = "Rainbow Pickaxe",
   inventory_image = "rainbow_pick.png",
   tool_capabilities = {
      full_punch_interval = 0.7,
      max_drop_level=3,
      groupcaps={
         cracky = {times={[1]=1.0, [2]=0.7, [3]=0.25}, uses=0},
      },
      damage_groups = {fleshy=9999},
   },
})
minetest.register_tool("nyancats_plus:rainbow_shovel", {
   description = "Rainbow Shovel",
   inventory_image = "rainbow_shovel.png",
   wield_image = "rainbow_shovel.png^[transformR90",
   tool_capabilities = {
      full_punch_interval = 0.8,
      max_drop_level=1,
      groupcaps={
         crumbly = {times={[1]=0.8, [2]=0.3, [3]=0.1}, uses=0, maxlevel=5},
      },
      damage_groups = {fleshy=9},
   },
})

minetest.register_tool("nyancats_plus:rainbow_axe", {
   description = "Rainbow Axe",
   inventory_image = "rainbow_axe.png",
   tool_capabilities = {
      full_punch_interval = 0.7,
      max_drop_level=1,
      groupcaps={
         choppy={times={[1]=1.9, [2]=0.70, [3]=0.30}, uses=0, maxlevel=5},
      },
      damage_groups = {fleshy=9},
   },
})
minetest.register_tool("nyancats_plus:rainbow_sword", {
   description = "Diamond Sword",
   inventory_image = "rainbow_sword.png",
   tool_capabilities = {
      full_punch_interval = 0.6,
      max_drop_level=1,
      groupcaps={
         snappy={times={[1]=1.70, [2]=0.70, [3]=0.10}, uses=0, maxlevel=5},
      },
      damage_groups = {fleshy=15},
   }
})
farming.register_hoe("nyancats_plus:rainbow_hoe", {
   description = "Rainbow Hoe",
   inventory_image = "rainbow_hoe.png",
   max_uses = 0,
   recipe = {
      {"nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard"},
      {"", "group:stick"},
      {"", "group:stick"},
   }
})

minetest.register_craft({
   output = "nyancats_plus:rainbow_pick",
   recipe = {
      {"nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard"},
      {'', 'group:stick', ''},
      {'', 'group:stick', ''},
   }
})

minetest.register_craft({
   output = "nyancats_plus:rainbow_shovel",
   recipe = {
      {"", "nyancats_plus:rainbow_shard", ""},
      {'', 'group:stick', ''},
      {'', 'group:stick', ''},
   }
})
minetest.register_craft({
   output = "nyancats_plus:rainbow_shovel",
   recipe = {
      {"", "nyancats_plus:rainbow_shard", ""},
      {'', 'group:stick', ''},
      {'', 'group:stick', ''},
   }
})
minetest.register_craft({
   output = "nyancats_plus:rainbow_axe",
   recipe = {
      {"nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard", ""},
      {"nyancats_plus:rainbow_shard", 'group:stick', ''},
      {'', 'group:stick', ''},
   }
})
minetest.register_craft({
   output = "nyancats_plus:rainbow_sword",
   recipe = {
      {"", "nyancats_plus:rainbow_shard", ""},
      {'', "nyancats_plus:rainbow_shard", ''},
      {'', 'group:stick', ''},
   }
})


damage value must be positive to damage things!


Ok I was just testing. Is that the edited code? I'd also like to switch the sticks with steel ingots when crafting the tools, do I switch the 'group:stick's with 'group:steel_ingot'?
 

User avatar
orwell
Member
 
Posts: 772
Joined: Wed Jun 24, 2015 18:45
Location: Raxacoricofallapatorius
GitHub: orwell96
IRC: orwell96_mt
In-game: orwell

Re: Post your modding questions here

by orwell » Fri Apr 21, 2017 07:48

Lone_Wolf wrote:
cx384 wrote:
Lone_Wolf wrote:I edited the texture for the nyancat sword (nyancatsplus mod) in windows Paint and in the game there's white in the place of the transparent background I was aiming for. I've been able to get transparent backrounds with paint before (Making a skin for MineBlocks). Any suggestions?

Use gimp!
https://www.gimp.org/

Thanks! (I had heard of it before but was too lazy to download)...

If you look for something simpler, try Paint.NET
http://getpaint.net
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...
 

User avatar
azekill_DIABLO
Member
 
Posts: 7479
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: Post your modding questions here

by azekill_DIABLO » Fri Apr 21, 2017 08:16

Lone_Wolf wrote:
azekill_DIABLO wrote:
Code: Select all
minetest.register_craftitem("nyancats_plus:rainbow_shard", {
   description = "Rainbow shard",
   inventory_image = "rainbow_shard.png",
})
minetest.register_craft({
   output = 'nyancats_plus:rainbow_shard 9',
   recipe = {
      {"default:nyancat_rainbow"},
   }
})
minetest.register_tool("nyancats_plus:rainbow_pick",{
   description = "Rainbow Pickaxe",
   inventory_image = "rainbow_pick.png",
   tool_capabilities = {
      full_punch_interval = 0.7,
      max_drop_level=3,
      groupcaps={
         cracky = {times={[1]=1.0, [2]=0.7, [3]=0.25}, uses=0},
      },
      damage_groups = {fleshy=9999},
   },
})
minetest.register_tool("nyancats_plus:rainbow_shovel", {
   description = "Rainbow Shovel",
   inventory_image = "rainbow_shovel.png",
   wield_image = "rainbow_shovel.png^[transformR90",
   tool_capabilities = {
      full_punch_interval = 0.8,
      max_drop_level=1,
      groupcaps={
         crumbly = {times={[1]=0.8, [2]=0.3, [3]=0.1}, uses=0, maxlevel=5},
      },
      damage_groups = {fleshy=9},
   },
})

minetest.register_tool("nyancats_plus:rainbow_axe", {
   description = "Rainbow Axe",
   inventory_image = "rainbow_axe.png",
   tool_capabilities = {
      full_punch_interval = 0.7,
      max_drop_level=1,
      groupcaps={
         choppy={times={[1]=1.9, [2]=0.70, [3]=0.30}, uses=0, maxlevel=5},
      },
      damage_groups = {fleshy=9},
   },
})
minetest.register_tool("nyancats_plus:rainbow_sword", {
   description = "Diamond Sword",
   inventory_image = "rainbow_sword.png",
   tool_capabilities = {
      full_punch_interval = 0.6,
      max_drop_level=1,
      groupcaps={
         snappy={times={[1]=1.70, [2]=0.70, [3]=0.10}, uses=0, maxlevel=5},
      },
      damage_groups = {fleshy=15},
   }
})
farming.register_hoe("nyancats_plus:rainbow_hoe", {
   description = "Rainbow Hoe",
   inventory_image = "rainbow_hoe.png",
   max_uses = 0,
   recipe = {
      {"nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard"},
      {"", "group:stick"},
      {"", "group:stick"},
   }
})

minetest.register_craft({
   output = "nyancats_plus:rainbow_pick",
   recipe = {
      {"nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard"},
      {'', 'group:stick', ''},
      {'', 'group:stick', ''},
   }
})

minetest.register_craft({
   output = "nyancats_plus:rainbow_shovel",
   recipe = {
      {"", "nyancats_plus:rainbow_shard", ""},
      {'', 'group:stick', ''},
      {'', 'group:stick', ''},
   }
})
minetest.register_craft({
   output = "nyancats_plus:rainbow_shovel",
   recipe = {
      {"", "nyancats_plus:rainbow_shard", ""},
      {'', 'group:stick', ''},
      {'', 'group:stick', ''},
   }
})
minetest.register_craft({
   output = "nyancats_plus:rainbow_axe",
   recipe = {
      {"nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard", ""},
      {"nyancats_plus:rainbow_shard", 'group:stick', ''},
      {'', 'group:stick', ''},
   }
})
minetest.register_craft({
   output = "nyancats_plus:rainbow_sword",
   recipe = {
      {"", "nyancats_plus:rainbow_shard", ""},
      {'', "nyancats_plus:rainbow_shard", ''},
      {'', 'group:stick', ''},
   }
})


damage value must be positive to damage things!


Ok I was just testing. Is that the edited code? I'd also like to switch the sticks with steel ingots when crafting the tools, do I switch the 'group:stick's with 'group:steel_ingot'?


no it's default:steel_ingot
 

User avatar
Lone_Wolf
Member
 
Posts: 2157
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

Re: Post your modding questions here

by Lone_Wolf » Sat Apr 22, 2017 04:47

orwell wrote:If you look for something simpler, try Paint.NET
http://getpaint.net

I'll go for the simple one lol.
thanks!
 

User avatar
Lone_Wolf
Member
 
Posts: 2157
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

Re: Post your modding questions here

by Lone_Wolf » Sat Apr 22, 2017 04:51

azekill_DIABLO wrote:
no it's default:steel_ingot

Thanks for your help!
(Understanding of Mintest has gone up 1% :D)
 

User avatar
azekill_DIABLO
Member
 
Posts: 7479
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
burli
Member
 
Posts: 1635
Joined: Fri Apr 10, 2015 13:18

Re: Post your modding questions here

by burli » Sun Apr 23, 2017 11:53

Is the collision box of objects an example or the default value if no value is given?

https://github.com/minetest/minetest/bl ... .txt#L3681
 

User avatar
azekill_DIABLO
Member
 
Posts: 7479
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

PreviousNext

Return to Modding Discussion



Who is online

Users browsing this forum: No registered users and 3 guests