Add bookshelves and anvils as structure constructed nodes #3133
No reviewers
Labels
No Label
#P1 CRITICAL
#P2: HIGH
#P3: elevated
#P4 priority: medium
#P6: low
#Review
annoying
API
bug
code quality
combat
commands
compatibility
configurability
contribution inside
controls
core feature
creative mode
delayed for engine release
documentation
duplicate
enhancement
environment
feature request
gameplay
graphics
ground content conflict
GUI/HUD
help wanted
incomplete feature
invalid / won't fix
items
looking for contributor
mapgen
meta
mineclone2+
Minecraft >= 1.13
Minecraft >= 1.17
missing feature
mobile
mobs
mod support
model needed
multiplayer
Needs adoption
needs discussion
needs engine change
needs more information
needs research
nodes
non-mob entities
performance
player
possible close
redstone
release notes
schematics
Skyblock
sounds
Testing / Retest
tools
translation
unconfirmed
mcl5
mcla
Media missing
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: VoxeLibre/VoxeLibre#3133
Loading…
Reference in New Issue
No description provided.
Delete Branch "structure_construct_nodes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bookshelves and anvils that are generated in structures are unusable. This PR fixes that issue.
Testing
On master, see how bookshelves in woodland outposts and anvils in pillager outposts are unusable. Also notice in the woodland outposts that there is a double chest in the farm room that doesn't work. On branch, confirm that they are usable now. Confirm that pillager outpost wall nodes are built and connect correctly. Also confirm that the barrels that replace the double chests in the woodland outpost work.
Issues Fixed
This PR Fixes #3130
0021a2bade
to3c0d68c7a0
0025c62fa2
to18ab5015e3
@ -69,2 +70,3 @@
mcl_structures.spawn_mobs("mobs_mc:iron_golem",{"mesecons_button:button_stone_off"},p1,p2,pr,1)
mcl_structures.construct_nodes(p1,p2,{"group:wall"})
for _,n in pairs(minetest.find_nodes_in_area(p1,p2,{"group:wall"})) do
local def = minetest.registered_nodes[minetest.get_node(n).name:gsub("_%d+$","")]
Out of curiosity, what does this change do? I see for the other changes, it calls on_construct for bookshelf and anvil, but why is this done for the walls?
What issue was there previously with walls?
Whoops wrong button. Anyway, its the old code that makes the wall nodes in the pillager outpost actually connect. The mcl_structures.construct_nodes function wasnt working, probably due to the amount of wall nodes, so I replaced it with the old working code. If you were to spawnstruct a pillager outpost (the one without the outside cages) in certain spots, the rotation of the schematic messes up the wall nodes, so this makes sure that they connect every time no matter the spot.
Ah, I see. Thanks for explaining that!
I've testing and this is working. Looks good. One question for my own curiosity, and then I'm happy to merge.
18ab5015e3
to0a2f57476e