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 3 additions and 2 deletions

View file

@ -13,9 +13,9 @@ Here is how it works. For the red channel, the blocks are changed, for the blue
Lets say you place down the colour `#49f` the node that is placed down is `hexcol:4xx` the last 2 hex digits are converted to decimal and placed in the param2 therefore defining a colour from one of the 16 palette images generated by the PHP script in this repo.
The upside to this approch is that load times are much faster for players, and less notes 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.

View file

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