Compare commits

..

2 commits

Author SHA1 Message Date
your name
1e25a1d446 modified: README.md 2023-12-05 10:26:30 -05:00
your name
e305c5c51f now makes use of place_param2 feature. 2023-12-05 10:23:11 -05:00
2 changed files with 2 additions and 1 deletions

View file

@ -15,7 +15,7 @@ Lets say you place down the colour `#49f` the node that is placed down is `hexco
The upside to this approch is that load times are much faster for players, and less nodes are registered so other big mods can use the use the space instead. The upside to this approch is that load times are much faster for players, and less nodes are registered so other big mods can use the use the space instead.
The downside is that its harder to use with worldedit and when placing the nodes using the craftitem, the colour is delayed. So if you place `#49f` it wll show up as `#400` for a split second depending on server ping as it places down `hexcol:4xx` and then sets the param2 to `0x9f`. The downside is that its harder to use with worldedit and when placing the nodes using the craftitem, the colour is delayed. So if you place `#49f` it wll show up as `#400` for a split second depending on server ping as it places down `hexcol:4xx` and then sets the param2 to `0x9f`. UPDATE: the colour delay is a thing of the past if you use minetest 5.8.0 or newer.
This mod is currently only for use with creative mode. There is no way to obtain the nodes in survival. Anyone is welcome to make a mod to provide such a method. This mod is currently only for use with creative mode. There is no way to obtain the nodes in survival. Anyone is welcome to make a mod to provide such a method.

View file

@ -46,6 +46,7 @@ do
groups = itemgroup, groups = itemgroup,
sounds = block_sound, sounds = block_sound,
node_placement_prediction = "hexcol:"..firsthex.."xx", node_placement_prediction = "hexcol:"..firsthex.."xx",
place_param2 = tonumber("0x"..p2hex),
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
if not (creative and creative.is_enabled_for if not (creative and creative.is_enabled_for
and creative.is_enabled_for(placer:get_player_name())) and creative.is_enabled_for(placer:get_player_name()))