Post your modding questions here

User avatar
Lone_Wolf
Member
Posts: 2578
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: Post your modding questions here

by Lone_Wolf » Post

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)...
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

User avatar
Lone_Wolf
Member
Posts: 2578
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: Post your modding questions here

by Lone_Wolf » Post

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')
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

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

Re: Post your modding questions here

by azekill_DIABLO » Post

please post the nyansword code, i'll show you what to modify. and this value exceeds binary capacity
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
Lone_Wolf
Member
Posts: 2578
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: Post your modding questions here

by Lone_Wolf » Post

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.
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

User avatar
Lone_Wolf
Member
Posts: 2578
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: Post your modding questions here

by Lone_Wolf » Post

I downloaded GIMP and edited the NyanCat sword texture but Mintest couldn't read the file...
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

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

Re: Post your modding questions here

by cx384 » Post

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: 2578
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: Post your modding questions here

by Lone_Wolf » Post

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'
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

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

Re: Post your modding questions here

by burli » Post

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

User avatar
Lone_Wolf
Member
Posts: 2578
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: Post your modding questions here

by Lone_Wolf » Post

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.
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

User avatar
Lone_Wolf
Member
Posts: 2578
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: Post your modding questions here

by Lone_Wolf » Post

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)
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

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

Re: Post your modding questions here

by sofar » Post

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/networ ... ork-delays

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

Re: Post your modding questions here

by burli » Post

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: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Post your modding questions here

by sofar » Post

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: 1643
Joined: Fri Apr 10, 2015 13:18

Re: Post your modding questions here

by burli » Post

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: 818
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri
In-game: Raymoo + Clownpiece

Re: Post your modding questions here

by Byakuren » Post

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: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Post your modding questions here

by sofar » Post

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: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: Post your modding questions here

by azekill_DIABLO » Post

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!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
Lone_Wolf
Member
Posts: 2578
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: Post your modding questions here

by Lone_Wolf » Post

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'?
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

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

Re: Post your modding questions here

by orwell » Post

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: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: Post your modding questions here

by azekill_DIABLO » Post

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
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
Lone_Wolf
Member
Posts: 2578
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: Post your modding questions here

by Lone_Wolf » Post

orwell wrote: If you look for something simpler, try Paint.NET
http://getpaint.net
I'll go for the simple one lol.
thanks!
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

User avatar
Lone_Wolf
Member
Posts: 2578
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: Post your modding questions here

by Lone_Wolf » Post

azekill_DIABLO wrote:
no it's default:steel_ingot
Thanks for your help!
(Understanding of Mintest has gone up 1% :D)
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

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

Re: Post your modding questions here

by azekill_DIABLO » Post

Great!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

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

Re: Post your modding questions here

by burli » Post

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: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: Post your modding questions here

by azekill_DIABLO » Post

it's the default value, it's same as a node.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

Locked

Who is online

Users browsing this forum: No registered users and 9 guests