some small changes
This commit is contained in:
parent
566be67928
commit
7157d6c0ee
@ -68,9 +68,6 @@ minetest.register_node('drinks:juice_press', {
|
||||
local instack = inv:get_stack("src", 1)
|
||||
local fruitstack = instack:get_name()
|
||||
local mod, fruit, trash = fruitstack:match("([^:]+):([^:]+)_([^:]+)")
|
||||
print (mod)
|
||||
print (fruit)
|
||||
print (trash)
|
||||
if drinks.juiceable[fruit] then
|
||||
meta:set_string('fruit', fruit)
|
||||
local outstack = inv:get_stack("dst", 1)
|
||||
|
@ -3,6 +3,7 @@ for i in ipairs (drinks.drink_table) do
|
||||
local desc = drinks.drink_table[i][1]
|
||||
local craft = drinks.drink_table[i][2]
|
||||
local color = drinks.drink_table[i][3]
|
||||
-- The color of the drink is all done in code, so we don't need to have multiple images.
|
||||
|
||||
--Actual Node registration
|
||||
minetest.register_craftitem('drinks:jcu_'..desc, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user