Liquid plasma floor entity (#18957)

This commit is contained in:
Kara
2023-08-10 07:16:51 -07:00
committed by GitHub
parent baddcf1b26
commit 42b38b7a5d
15 changed files with 331 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
- type: entity
id: FloorLavaEntity
name: lava floor
name: lava
description: Don't jump in. It's not worth it, no matter how funny it is.
placement:
mode: SnapgridCenter
snap:

View File

@@ -0,0 +1,49 @@
- type: entity
id: FloorLiquidPlasmaEntity
name: liquid plasma
description: Sweet, expensive nectar. Don't consume.
placement:
mode: SnapgridCenter
snap:
- Wall
components:
- type: StepTrigger
requiredTriggeredSpeed: 0
intersectRatio: 0.1
blacklist:
tags:
- Catwalk
- type: Lava
- type: Transform
anchored: true
- type: SyncSprite
- type: Clickable
- type: Sprite
sprite: Tiles/Planet/liquid_plasma.rsi
drawdepth: BelowFloor
layers:
- state: plasma
shader: unshaded
- type: Icon
sprite: Tiles/Planet/liquid_plasma.rsi
state: full
- type: IconSmooth
key: floor
base: plasma
- type: Physics
bodyType: Static
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.5,-0.5,0.5,0.5"
layer:
- SlipLayer
mask:
- ItemMask
density: 1000
hard: false
- type: Tag
tags:
- HideContextMenu

View File

@@ -1,6 +1,7 @@
- type: entity
id: FloorWaterEntity
name: water
description: A real thirst quencher.
placement:
mode: SnapgridCenter
snap:

View File

@@ -439,6 +439,20 @@
seed: 0
frequency: 0.02
fractalType: None
# Liquid plasma rivers. Ice moon baby
- !type:BiomeEntityLayer
allowedTiles:
- FloorSnow
threshold: 0.95
noise:
seed: 3
noiseType: OpenSimplex2
frequency: 0.003
lacunarity: 1.50
fractalType: Ridged
octaves: 1
entities:
- FloorLiquidPlasmaEntity
# Caves
- type: biomeTemplate