mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-07-20 06:10:23 +02:00
make cobwebs sit in corners when so-placed.
Algorithm tries to find an X-/Z+ or X+/Z- corner first (places the cobweb using the torchlike "on-floor" mode) then an X-/Z- or X+/Z+ corner ("on-ceiling), then opposing X-/X+ walls (nodebox, not rotated), then opposing Z-/Z+ walls (nodebox, rotated 90 degrees), then falls back to plantlike (which also happens to fit places where e.g. three walls come together only 1m apart) ABM added to convert old ones. Node name has changed so if you have cobwebs in your inventory, sorry about that.
This commit is contained in:
@ -105,6 +105,8 @@ dofile(homedecor.modpath.."/furniture_bathroom.lua")
|
||||
dofile(homedecor.modpath.."/furniture_recipes.lua")
|
||||
dofile(homedecor.modpath.."/climate-control.lua")
|
||||
|
||||
dofile(homedecor.modpath.."/cobweb.lua")
|
||||
|
||||
dofile(homedecor.modpath.."/locked.lua")
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user