mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-08-19 21:44:12 +02:00
Add new group: not_in_craft_guide
parent
64fe6f3f80
commit
d0207a6f69
7
API.md
7
API.md
@ -5,6 +5,11 @@ This document is a WORK IN PROGRESS. Currently, it only contains some informatio
|
|||||||
## Groups
|
## Groups
|
||||||
This section explains all the used groups in this subgame.
|
This section explains all the used groups in this subgame.
|
||||||
|
|
||||||
|
### Special groups
|
||||||
|
|
||||||
|
* `not_in_creative_inventory=1`: Item will not be shown in creative inventory
|
||||||
|
* `not_in_craft_guide=1`: Item will not be shown as result or fuel item in crafting guide (but still may be shown as ingredient)
|
||||||
|
|
||||||
### Groups for interactions
|
### Groups for interactions
|
||||||
|
|
||||||
* `dig_by_water=1`: Blocks with this group will drop when they are near flowing water
|
* `dig_by_water=1`: Blocks with this group will drop when they are near flowing water
|
||||||
@ -17,7 +22,7 @@ This section explains all the used groups in this subgame.
|
|||||||
* `soil_sugarcane=1`: Sugar canes will grow on this near water
|
* `soil_sugarcane=1`: Sugar canes will grow on this near water
|
||||||
* `disable_suffocation=1`: Disables suffocation for full solid cubes (1)
|
* `disable_suffocation=1`: Disables suffocation for full solid cubes (1)
|
||||||
|
|
||||||
### Footnotes
|
#### Footnotes
|
||||||
|
|
||||||
1. Normally, all walkable blocks with the default 1×1×1 cube as a collision box (e.g. sand,
|
1. Normally, all walkable blocks with the default 1×1×1 cube as a collision box (e.g. sand,
|
||||||
gravel, stone, but not fences) will damage the players while their head is inside. This
|
gravel, stone, but not fences) will damage the players while their head is inside. This
|
||||||
|
@ -300,7 +300,8 @@ function craftguide:get_init_items()
|
|||||||
local items_list, counter = {}, 0
|
local items_list, counter = {}, 0
|
||||||
for name, def in pairs(reg_items) do
|
for name, def in pairs(reg_items) do
|
||||||
local is_fuel = get_fueltime(name) > 0
|
local is_fuel = get_fueltime(name) > 0
|
||||||
if (get_recipe(name).items or is_fuel)
|
if (not def.groups.not_in_craft_guide or def.groups.not_in_raft_guide == 0)
|
||||||
|
and (get_recipe(name).items or is_fuel)
|
||||||
and def.description and def.description ~= "" then
|
and def.description and def.description ~= "" then
|
||||||
counter = counter + 1
|
counter = counter + 1
|
||||||
items_list[counter] = name
|
items_list[counter] = name
|
||||||
|
@ -194,7 +194,9 @@ function mcstair.add(name, stairtiles)
|
|||||||
outer_groups.not_in_creative_inventory = 1
|
outer_groups.not_in_creative_inventory = 1
|
||||||
local inner_groups = table.copy(outer_groups)
|
local inner_groups = table.copy(outer_groups)
|
||||||
outer_groups.stair = 2
|
outer_groups.stair = 2
|
||||||
|
outer_groups.not_in_craft_guide = 1
|
||||||
inner_groups.stair = 3
|
inner_groups.stair = 3
|
||||||
|
inner_groups.not_in_craft_guide = 1
|
||||||
local drop = node_def.drop or name
|
local drop = node_def.drop or name
|
||||||
local after_dig_node = function(pos, oldnode)
|
local after_dig_node = function(pos, oldnode)
|
||||||
local param = get_stair_param(oldnode)
|
local param = get_stair_param(oldnode)
|
||||||
|
Loading…
Reference in New Issue
Block a user