Skip to content

add more useful fields to InvisibleBarrier#1133

Open
microlith57 wants to merge 2 commits into
EverestAPI:devfrom
microlith57:invis-barrier-options
Open

add more useful fields to InvisibleBarrier#1133
microlith57 wants to merge 2 commits into
EverestAPI:devfrom
microlith57:invis-barrier-options

Conversation

@microlith57

@microlith57 microlith57 commented Jun 21, 2026

Copy link
Copy Markdown
Member

seems useful

note the actual default soundindex is Grass = 33 (apparently for bird nest reasons). a more sensible editor default would be 0 which is silent.

basic loenn plugin for testing:

local invisibleBarrier = {}

invisibleBarrier.name = "invisibleBarrier"
invisibleBarrier.fillColor = {0.4, 0.4, 0.4, 0.8}
invisibleBarrier.borderColor = {0.0, 0.0, 0.0, 0.0}
invisibleBarrier.placements = {
    name = "invisible_barrier",
    data = {
        width = 8,
        height = 8,
        allowClimbing = false, -- If disabled, blocks all climbing when the player is horizontally next to the barrier.
        surfaceIndex = 0, -- Footstep sound when walking on the barrier (or climbing, if enabled).
		allowStaticMovers = true -- If disabled, static movers like spikes won't attach to the barrier.
    }
}

return invisibleBarrier

@microlith57 microlith57 marked this pull request as ready for review June 21, 2026 01:43
@maddie480-bot maddie480-bot added the 1: review needed This PR needs 2 approvals to be merged (bot-managed) label Jun 21, 2026
@microlith57 microlith57 changed the title add surfaceIndex and allowClimbing to invisbarrier add more useful fields to InvisibleBarrier Jun 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1: review needed This PR needs 2 approvals to be merged (bot-managed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants