Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- minetest.register_craftitem("cakes:egg", {
- description = "Egg",
- inventory_image = "cakes_egg.png",
- })
- minetest.register_craftitem("cakes:milk", {
- description = "Milk",
- inventory_image = "cakes_milk.png",
- })
- minetest.register_craftitem("cakes:sugar", {
- description = "Sugar",
- inventory_image = "cakes_sugar.png",
- })
- minetest.register_craftitem("cakes:cake", {
- description = "Cake",
- inventory_image = "cakes_cake.png",
- on_use = minetest.item_eat(12, cakes:cake_slice 8),
- })
- minetest.register_craftitem("cakes:cake_slice", {
- description = "Cake Slice",
- inventory_image = "cakes_cake.png",
- on_use = minetest.item_eat(3),
- })
- minetest.register_craft({
- output = "cakes:cake",
- recipe = {
- {'cakes:milk', 'cakes:milk', 'cakes:milk'},
- {'cakes:sugar', 'cakes:egg', 'cakes:sugar'},
- {'farming:wheat', 'farming:wheat', 'farming:wheat'},
- }
- })
- minetest.register_craft({
- output = "cakes:cake_slice 9",
- recipe = {
- {'cakes:cake'},
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement