how can I make a nodebox breakable?

blueph03nix
New member
 
Posts: 7
Joined: Sat Oct 01, 2016 23:01
GitHub: blueph03nix
In-game: bluepheonix blueph30nix

how can I make a nodebox breakable?

by blueph03nix » Wed Jul 19, 2017 03:51

how can I make a nodebox breakable, I finally made a nodebox work but now I have no way of mining it, ideas?


EDIT: Thx guys!
Last edited by blueph03nix on Wed Jul 19, 2017 20:53, edited 1 time in total.
 

User avatar
yzelast
Member
 
Posts: 54
Joined: Sun Oct 02, 2016 01:18
Location: Far Far Away
GitHub: yzelast
In-game: yzelast

Re: How does a nodebox work/What is a nodebox?

by yzelast » Wed Jul 19, 2017 03:58

You need to add a group that can be harvested by hand or a tool. By example, if you add the group oddly_breakable_by_hand = 1, then you node will be breakable by hand.
G84mU6AQ9dKaNhxn6dq8P5C0y5r8NssE
 

User avatar
Linuxdirk
Member
 
Posts: 2200
Joined: Wed Sep 17, 2014 11:21
Location: Germany
In-game: Linuxdirk

Re: how can I make a nodebox breakable?

by Linuxdirk » Wed Jul 19, 2017 06:38

oddly_breakable_by_hand = 1 does take very long to break by hand. When you use the additional dig_immediate = x then you can define very fast breaking by hand.

x = 2: node is removed without tool wear after 0.5 seconds or so (rail, sign)
x = 3: node is removed without tool wear immediately (torch)

https://github.com/minetest/minetest/bl ... L1414L1416
 


Return to Modding Discussion



Who is online

Users browsing this forum: No registered users and 2 guests