mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-24 20:03:45 +01:00
Add minecart group
This commit is contained in:
parent
ac094daedb
commit
556d0e6ee1
23
API.md
23
API.md
@ -16,14 +16,6 @@ This section explains all the used groups in this subgame.
|
|||||||
* `soil_sapling=1`: Artificial soil (such as farmland) for saplings. Some saplings will not grow on this
|
* `soil_sapling=1`: Artificial soil (such as farmland) for saplings. Some saplings will not grow on this
|
||||||
* `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)
|
||||||
* `food`: Item is a comestible item which can be consumed (healthy or unhealthy)
|
|
||||||
* `food=2`: Food
|
|
||||||
* `food=3`: Drink
|
|
||||||
* `food=1`: Other/unsure
|
|
||||||
* `eatable`: Item can be *directly* eaten by wielding + left click (`on_use=item_eat`). Rating is the satiation gain
|
|
||||||
* `ammo=1`: Item is used as ammo for a weapon
|
|
||||||
* `ammo_bow=1`: Item is used as ammo for bows
|
|
||||||
* `weapon_ranged=1`: Item is a ranged weapon
|
|
||||||
|
|
||||||
### Footnotes
|
### Footnotes
|
||||||
|
|
||||||
@ -43,11 +35,11 @@ This section explains all the used groups in this subgame.
|
|||||||
* `wood_slab=1`: Slabs made out of a kind of wooden planks
|
* `wood_slab=1`: Slabs made out of a kind of wooden planks
|
||||||
* `wood_stairs=1`: Stairs made out of a kind of wooden planks
|
* `wood_stairs=1`: Stairs made out of a kind of wooden planks
|
||||||
* `coal=1`: Coal of any kind (lumps only, not blocks)
|
* `coal=1`: Coal of any kind (lumps only, not blocks)
|
||||||
* `boat=1`: Boat
|
|
||||||
* `wool=1`: Wool (only full blocks)
|
* `wool=1`: Wool (only full blocks)
|
||||||
* `carpet=1:` (Wool) carpet
|
* `carpet=1:` (Wool) carpet
|
||||||
|
|
||||||
### Other groups
|
### Declarative groups
|
||||||
|
These groups are used mostly for informational purposes
|
||||||
|
|
||||||
* `water=1`: Water
|
* `water=1`: Water
|
||||||
* `lava=1`: Lava
|
* `lava=1`: Lava
|
||||||
@ -59,3 +51,14 @@ This section explains all the used groups in this subgame.
|
|||||||
* `compass`: Compass (rating doesn't matter)
|
* `compass`: Compass (rating doesn't matter)
|
||||||
* `rail=1`: Rail
|
* `rail=1`: Rail
|
||||||
* `music_record`: Music Disc (rating is track ID)
|
* `music_record`: Music Disc (rating is track ID)
|
||||||
|
* `boat=1`: Boat
|
||||||
|
* `minecart=1`: Minecart
|
||||||
|
* `food`: Item is a comestible item which can be consumed (healthy or unhealthy)
|
||||||
|
* `food=2`: Food
|
||||||
|
* `food=3`: Drink
|
||||||
|
* `food=1`: Other/unsure
|
||||||
|
* `eatable`: Item can be *directly* eaten by wielding + left click (`on_use=item_eat`). Rating is the satiation gain
|
||||||
|
* `ammo=1`: Item is used as ammo for a weapon
|
||||||
|
* `ammo_bow=1`: Item is used as ammo for bows
|
||||||
|
* `weapon_ranged=1`: Item is a ranged weapon
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ function set_inv(filter, player)
|
|||||||
table.insert(creative_list, name)
|
table.insert(creative_list, name)
|
||||||
end
|
end
|
||||||
elseif filter == "#rail" then
|
elseif filter == "#rail" then
|
||||||
if def.groups.rail or def.groups.cart or def.groups.boat then
|
if def.groups.rail or def.groups.minecart or def.groups.boat then
|
||||||
table.insert(creative_list, name)
|
table.insert(creative_list, name)
|
||||||
end
|
end
|
||||||
elseif filter == "#misc" then
|
elseif filter == "#misc" then
|
||||||
|
@ -275,6 +275,7 @@ minetest.register_craftitem("mcl_minecarts:minecart", {
|
|||||||
itemstack:take_item()
|
itemstack:take_item()
|
||||||
return itemstack
|
return itemstack
|
||||||
end,
|
end,
|
||||||
|
groups = { minecart = 1 },
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
Loading…
Reference in New Issue
Block a user