Remove saplings, water, and buckets?

redblade7
Member
 
Posts: 101
Joined: Sun Feb 15, 2015 07:14
IRC: redblade7 redblade bleakfire
In-game: redblade7

Remove saplings, water, and buckets?

by redblade7 » Wed Nov 16, 2016 21:16

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!
-redblade7
Admin of:

* THE CREATIVE GARDENS (Creative Mode server)
* THE VALLEYS (Sandbox Server)
* THE DIGITAL FARMS (Pizza-like server with protection and emphasis on farming)
 

User avatar
AnxiousInfusion
Member
 
Posts: 146
Joined: Sun Aug 02, 2015 05:43
GitHub: AnxiousInfusion[GitLab]
IRC: AnxiousInfusion
In-game: AnxiousInfusion

Re: Remove saplings, water, and buckets?

by AnxiousInfusion » Thu Nov 17, 2016 05:16

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>
]]
 

cheapie
Member
 
Posts: 304
Joined: Mon May 14, 2012 00:59
GitHub: cheapie
IRC: cheapie
In-game: cheapie

Re: Remove saplings, water, and buckets?

by cheapie » Mon Nov 21, 2016 21:03

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).
 

User avatar
programmingchicken
Member
 
Posts: 537
Joined: Sat Apr 18, 2015 02:20
GitHub: ProgrammingChicken
IRC: gamer chicken
In-game: gamerdude

Re: Remove saplings, water, and buckets?

by programmingchicken » Wed Dec 14, 2016 15:07

Go into the code definitions for saplings and delete the jungle ones.
I'm bold. I'm sarcastic. I'm PChicken.
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 44 guests

cron