Enable placement prediction everywhere.
This commit is contained in:
parent
1376e0b0b3
commit
9a42477859
1
corn.lua
1
corn.lua
@ -22,6 +22,7 @@ minetest.register_node("crops:corn", {
|
||||
use_texture_alpha = true,
|
||||
walkable = true,
|
||||
paramtype = "light",
|
||||
node_placement_prediction = "crops:corn_base_seed",
|
||||
groups = { snappy=3,flammable=3,flora=1,attached_node=1 },
|
||||
drop = {},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
|
@ -28,6 +28,7 @@ minetest.register_node("crops:melon_seed", {
|
||||
use_texture_alpha = true,
|
||||
walkable = false,
|
||||
paramtype = "light",
|
||||
node_placement_prediction = "crops:melon_plant_1",
|
||||
groups = { snappy=3,flammable=3,flora=1,attached_node=1 },
|
||||
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
|
@ -181,6 +181,7 @@ minetest.register_craftitem("crops:green_bean_seed", {
|
||||
description = "green bean seed",
|
||||
inventory_image = "crops_green_bean_seed.png",
|
||||
wield_image = "crops_green_bean_seed.png",
|
||||
node_placement_prediction = "crops:beanpole_plant_base_1",
|
||||
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
local under = minetest.get_node(pointed_thing.under)
|
||||
|
@ -21,6 +21,7 @@ minetest.register_node("crops:potato_eyes", {
|
||||
use_texture_alpha = true,
|
||||
walkable = false,
|
||||
paramtype = "light",
|
||||
node_placement_prediction = "crops:potato_plant_1",
|
||||
groups = { snappy=3,flammable=3,flora=1,attached_node=1 },
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
|
@ -28,6 +28,7 @@ minetest.register_node("crops:pumpkin_seed", {
|
||||
use_texture_alpha = true,
|
||||
walkable = false,
|
||||
paramtype = "light",
|
||||
node_placement_prediction = "crops:pumpkin_plant_1",
|
||||
groups = { snappy=3,flammable=3,flora=1,attached_node=1 },
|
||||
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
|
@ -23,6 +23,7 @@ minetest.register_node("crops:tomato_seed", {
|
||||
use_texture_alpha = true,
|
||||
walkable = false,
|
||||
paramtype = "light",
|
||||
node_placement_prediction = "crops:tomato_plant_1",
|
||||
groups = { snappy=3,flammable=3,flora=1,attached_node=1 },
|
||||
drop = {},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user