Grass bags (#1381)

* grass bugs

* move to victoria

* Update tiles_grass_bag.yml
This commit is contained in:
Red
2025-06-04 12:22:54 +03:00
committed by GitHub
parent 63b2e530c8
commit 17be798db4
9 changed files with 175 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
- type: entity
parent: CP14FloorTileBase
id: CP14FloorTileGrassBagBase
description: A bag of grass seed. A pinch of natural magic and the dirt is covered with a beautiful lawn in the blink of an eye!
abstract: true
categories: [ ForkFiltered ]
components:
- type: Sprite
sprite: _CP14/Objects/Specific/Farming/grass_seeds.rsi
- type: Item
sprite: _CP14/Objects/Tile/tile.rsi
size: Tiny
- type: Stack
count: 1
- type: FloorTile
placeTileSound:
collection: CP14GrassGathering
params:
variation: 0.05
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 10
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: entity
parent: CP14FloorTileGrassBagBase
id: CP14FloorTileGrassBag
name: grass bag
components:
- type: Sprite
state: grass2
- type: FloorTile
outputs:
- CP14FloorGrass
- type: Stack
stackType: CP14FloorTileGrassBag
- type: entity
parent: CP14FloorTileGrassBagBase
id: CP14FloorTileGrassBagLight
name: light grass bag
components:
- type: Sprite
state: grass
- type: FloorTile
outputs:
- CP14FloorGrassLight
- type: Stack
stackType: CP14FloorTileGrassBagLight
- type: entity
parent: CP14FloorTileGrassBagBase
id: CP14FloorTileGrassBagTall
name: tall grass bag
components:
- type: Sprite
state: grass3
- type: FloorTile
outputs:
- CP14FloorGrassTall
- type: Stack
stackType: CP14FloorTileGrassBagTall

View File

@@ -39,6 +39,29 @@
layers:
- !type:BiomeMetaLayer
template: CP14GrassFill
- !type:BiomeDecalLayer #Rock decal
allowedTiles:
- CP14FloorGrass
- CP14FloorGrassLight
- CP14FloorGrassTall
threshold: 0.6
divisions: 1
noise:
seed: 18
noiseType: OpenSimplex2
fractalType: Ridged
frequency: 0.11
octaves: 3
lacunarity: 1.7
gain: 0.8
domainWarpType: OpenSimplex2
domainWarpAmp: 120
decals:
- CP14FloraRock01
- CP14FloraRock02
- CP14FloraRock03
- CP14FloraRock04
- CP14FloraRock05
- !type:BiomeDecalLayer #Grass decal
allowedTiles:
- CP14FloorGrass

View File

@@ -103,3 +103,26 @@
icon: { sprite: _CP14/Objects/Tile/tile.rsi, state: birch_woodplanks_stairways }
maxCount: 30
- type: stack
id: CP14FloorTileGrassBag
name: cp14-tiles-grass
spawn: CP14FloorTileGrassBag
icon: { sprite: _CP14/Objects/Specific/Farming/grass_seeds.rsi, state: grass }
maxCount: 30
- type: stack
id: CP14FloorTileGrassBagLight
name: cp14-tiles-grass-light
spawn: CP14FloorTileGrassBagLight
icon: { sprite: _CP14/Objects/Specific/Farming/grass_seeds.rsi, state: grass2 }
maxCount: 30
- type: stack
id: CP14FloorTileGrassBagTall
name: cp14-tiles-grass-tall
spawn: CP14FloorTileGrassBagTall
icon: { sprite: _CP14/Objects/Specific/Farming/grass_seeds.rsi, state: grass3 }
maxCount: 30

View File

@@ -66,6 +66,46 @@
product: CP14FoodOnion
count: 3
- type: cp14TradingPosition
id: CP14FloorTileGrassBag
faction: VictoriaGardens
priceMarkup: 2
reputationLevel: 0
uiPosition: 7
icon:
sprite: _CP14/Objects/Specific/Farming/grass_seeds.rsi
state: grass
service: !type:CP14BuyItemsService
product: CP14FloorTileGrassBag
count: 5
- type: cp14TradingPosition
id: CP14FloorTileGrassBagLight
faction: VictoriaGardens
priceMarkup: 2
reputationLevel: 0
uiPosition: 8
icon:
sprite: _CP14/Objects/Specific/Farming/grass_seeds.rsi
state: grass2
service: !type:CP14BuyItemsService
product: CP14FloorTileGrassBagLight
count: 5
- type: cp14TradingPosition
id: CP14FloorTileGrassBagTall
faction: VictoriaGardens
priceMarkup: 2
reputationLevel: 0
uiPosition: 9
icon:
sprite: _CP14/Objects/Specific/Farming/grass_seeds.rsi
state: grass3
service: !type:CP14BuyItemsService
product: CP14FloorTileGrassBagTall
count: 5
# Rep 1
- type: cp14TradingPosition

Binary file not shown.

After

Width:  |  Height:  |  Size: 332 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 403 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 409 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 419 B

View File

@@ -0,0 +1,23 @@
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"license": "CC-BY-SA-4.0",
"copyright": "Created by TheShuEd (Github) ",
"states": [
{
"name": "bag"
},
{
"name": "grass"
},
{
"name": "grass2"
},
{
"name": "grass3"
}
]
}