Page 1 of 1

Remove saplings, water, and buckets?

PostPosted: Wed Nov 16, 2016 21:16
by redblade7
Hi,

I've been thinking about creating a new server, not telling anyone the ideas I have in mind yet, but is there a way to remove saplings, water, and buckets from either the included inventory or unified_inventory(_lite)? I know there is a lava_restriction mod to prevent dumping lava above ground, and I could tolerate that (though would rather remove lava too). But I don't want people using buckets, dumping water, or planting jungle saplings (jungle is disabled).

Thank you!

Re: Remove saplings, water, and buckets?

PostPosted: Thu Nov 17, 2016 05:16
by AnxiousInfusion
Buckets exist as their own mod in the default Minetest Game. Just edit ~/minetest/mods/bucket/init.lua and comment out the minetest.register_craft for buckets by surrounding it with braces
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
--[[
<code_block_here>
]]

Re: Remove saplings, water, and buckets?

PostPosted: Mon Nov 21, 2016 21:03
by cheapie
If you just want to hide something from the creative inventory, you can add "not_in_creative_inventory=1" to its groups.

For example, you might change:
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
groups = {snappy = 3, flora = 1, attached_node = 1, grass = 1, flammable = 1},

To:
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
groups = {snappy = 3, flora = 1, attached_node = 1, grass = 1, flammable = 1, not_in_creative_inventory = 1},


Combined with the above suggestion to comment out (or just delete) the crafts, this will result in the nodes/items in question being unobtainable except via /give or /giveme (or finding them in the world somewhere).

Re: Remove saplings, water, and buckets?

PostPosted: Wed Dec 14, 2016 15:07
by programmingchicken
Go into the code definitions for saplings and delete the jungle ones.