summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAuke Kok <sofar@foo-projects.org>2015-12-11 15:57:08 -0800
committerAuke Kok <sofar@foo-projects.org>2015-12-11 15:57:08 -0800
commit9a42477859e9a0d521b8c3b35ce26a8f64ae9c09 (patch)
treea2724e5c04dc8cba844f7b09d42cfc058fccae25
parent1376e0b0b3e719d69adad465dc0a4f8eb6b73d35 (diff)
Enable placement prediction everywhere.
-rw-r--r--corn.lua1
-rw-r--r--melon.lua1
-rw-r--r--polebean.lua1
-rw-r--r--potato.lua1
-rw-r--r--pumpkin.lua1
-rw-r--r--tomato.lua1
6 files changed, 6 insertions, 0 deletions
diff --git a/corn.lua b/corn.lua
index debd661..7a26b8a 100644
--- a/corn.lua
+++ b/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(),
diff --git a/melon.lua b/melon.lua
index 5f0354c..a6cf0d7 100644
--- a/melon.lua
+++ b/melon.lua
@@ -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)
diff --git a/polebean.lua b/polebean.lua
index 27eb854..0feeffb 100644
--- a/polebean.lua
+++ b/polebean.lua
@@ -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)
diff --git a/potato.lua b/potato.lua
index d86af42..21cd67c 100644
--- a/potato.lua
+++ b/potato.lua
@@ -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",
diff --git a/pumpkin.lua b/pumpkin.lua
index a5d2754..cd35168 100644
--- a/pumpkin.lua
+++ b/pumpkin.lua
@@ -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)
diff --git a/tomato.lua b/tomato.lua
index eddce71..8d4ea08 100644
--- a/tomato.lua
+++ b/tomato.lua
@@ -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(),