Minecraft update (#157)
* add shovel and digging tool quality * dirt digging effect * variantize deconstructed tile * added dirt tile borders * revert variantize tiles, add dirt blocks entity * add dirt stack * Update simple.yml
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
- type: entity
|
||||
id: CP14DirtEffect
|
||||
noSpawn: true
|
||||
components:
|
||||
- type: TimedDespawn
|
||||
lifetime: 2
|
||||
- type: Sprite
|
||||
drawdepth: Effects
|
||||
noRot: true
|
||||
layers:
|
||||
- sprite: _CP14/Effects/dirt.rsi
|
||||
state: dirt1
|
||||
map: [ "random" ]
|
||||
- type: EffectVisuals
|
||||
- type: Tag
|
||||
tags:
|
||||
- HideContextMenu
|
||||
- type: AnimationPlayer
|
||||
- type: RandomSprite
|
||||
available:
|
||||
- random:
|
||||
dirt1: ""
|
||||
dirt2: ""
|
||||
@@ -0,0 +1,10 @@
|
||||
- type: entity
|
||||
id: CP14RandomDirtLootSpawner
|
||||
name: dirt spawner
|
||||
parent: CP14DirtEffect
|
||||
components:
|
||||
- type: RandomSpawner
|
||||
prototypes:
|
||||
- CP14DirtBlock
|
||||
chance: 1
|
||||
deleteSpawnerAfterSpawn: false
|
||||
@@ -0,0 +1,32 @@
|
||||
- type: entity
|
||||
id: CP14DirtBlock
|
||||
parent: BaseItem
|
||||
name: dirt block
|
||||
description: A block of excellent black soil.
|
||||
components:
|
||||
- type: Item
|
||||
size: Normal
|
||||
- type: Sprite
|
||||
noRot: true
|
||||
sprite: _CP14/Objects/Materials/dirt_block.rsi
|
||||
layers:
|
||||
- state: dirt
|
||||
map: ["base"]
|
||||
- type: FloorTile
|
||||
placeTileSound:
|
||||
collection: CP14Digging
|
||||
params:
|
||||
variation: 0.03
|
||||
volume: 2
|
||||
outputs:
|
||||
- CP14FloorDirt
|
||||
- type: Stack
|
||||
stackType: CP14Dirt
|
||||
count: 1
|
||||
baseLayer: base
|
||||
layerStates:
|
||||
- dirt
|
||||
- dirt_2
|
||||
- dirt_3
|
||||
- type: Appearance
|
||||
# TODO material
|
||||
29
Resources/Prototypes/_CP14/Entities/Objects/Tools/shovel.yml
Normal file
29
Resources/Prototypes/_CP14/Entities/Objects/Tools/shovel.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
- type: entity
|
||||
id: CP14Shovel
|
||||
parent: BaseItem
|
||||
name: shovel
|
||||
description: An implement for digging up earth, digging beds or graves.
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: _CP14/Objects/Tools/shovel.rsi
|
||||
state: icon
|
||||
- type: MeleeWeapon
|
||||
wideAnimationRotation: 45
|
||||
damage:
|
||||
types:
|
||||
Blunt: 7
|
||||
Slash: 3
|
||||
soundHit:
|
||||
collection: MetalThud
|
||||
- type: Item
|
||||
size: Normal
|
||||
sprite: _CP14/Objects/Tools/shovel.rsi
|
||||
- type: ToolTileCompatible
|
||||
- type: Tool
|
||||
qualities:
|
||||
- CP14Digging
|
||||
useSound:
|
||||
collection: CP14Digging
|
||||
params:
|
||||
variation: 0.03
|
||||
volume: 2
|
||||
@@ -59,4 +59,4 @@
|
||||
sprite: _CP14/Objects/Ores/ore_gold.rsi
|
||||
layers:
|
||||
- state: ore1
|
||||
map: ["random"]
|
||||
map: ["random"]
|
||||
@@ -1,6 +0,0 @@
|
||||
|
||||
- type: soundCollection
|
||||
id: CP14CrystalDings
|
||||
files:
|
||||
- /Audio/_CP14/Effects/crystal_ding.ogg
|
||||
- /Audio/_CP14/Effects/crystal_ding2.ogg
|
||||
14
Resources/Prototypes/_CP14/SoundCollections/misc.yml
Normal file
14
Resources/Prototypes/_CP14/SoundCollections/misc.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
- type: soundCollection
|
||||
id: CP14CrystalDings
|
||||
files:
|
||||
- /Audio/_CP14/Effects/crystal_ding.ogg
|
||||
- /Audio/_CP14/Effects/crystal_ding2.ogg
|
||||
|
||||
- type: soundCollection
|
||||
id: CP14Digging
|
||||
files:
|
||||
- /Audio/_CP14/Items/shovel_dig1.ogg
|
||||
- /Audio/_CP14/Items/shovel_dig2.ogg
|
||||
- /Audio/_CP14/Items/shovel_dig3.ogg
|
||||
- /Audio/_CP14/Items/shovel_dig4.ogg
|
||||
- /Audio/_CP14/Items/shovel_dig5.ogg
|
||||
6
Resources/Prototypes/_CP14/Stacks/floor_tile_stacks.yml
Normal file
6
Resources/Prototypes/_CP14/Stacks/floor_tile_stacks.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
- type: stack
|
||||
id: CP14Dirt
|
||||
name: dirt block
|
||||
spawn: CP14DirtBlock
|
||||
maxCount: 10
|
||||
itemSize: 5
|
||||
@@ -30,7 +30,6 @@
|
||||
- 1.0
|
||||
- 1.0
|
||||
- 1.0
|
||||
- 1.0
|
||||
baseTurf: CP14FloorBase #Recursivle indestructible
|
||||
isSubfloor: true
|
||||
footstepSounds:
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
editorHidden: false
|
||||
id: CP14FloorDirt
|
||||
name: cp14-tiles-dirt
|
||||
sprite: /Textures/_CP14/Tiles/cavedrought.png
|
||||
sprite: /Textures/_CP14/Tiles/Dirt/cavedrought.png
|
||||
variants: 16
|
||||
placementVariants:
|
||||
- 1.0
|
||||
@@ -21,7 +21,19 @@
|
||||
- 1.0
|
||||
- 1.0
|
||||
- 1.0
|
||||
edgeSpritePriority: 1
|
||||
edgeSprites:
|
||||
SouthEast: /Textures/_CP14/Tiles/Dirt/single_edge.png
|
||||
NorthEast: /Textures/_CP14/Tiles/Dirt/single_edge.png
|
||||
NorthWest: /Textures/_CP14/Tiles/Dirt/single_edge.png
|
||||
SouthWest: /Textures/_CP14/Tiles/Dirt/single_edge.png
|
||||
South: /Textures/_CP14/Tiles/Dirt/double_edge.png
|
||||
East: /Textures/_CP14/Tiles/Dirt/double_edge.png
|
||||
North: /Textures/_CP14/Tiles/Dirt/double_edge.png
|
||||
West: /Textures/_CP14/Tiles/Dirt/double_edge.png
|
||||
baseTurf: CP14FloorBase
|
||||
deconstructTools: [ CP14Digging ]
|
||||
itemDrop: CP14RandomDirtLootSpawner
|
||||
isSubfloor: true
|
||||
footstepSounds:
|
||||
collection: FootstepAsteroid
|
||||
@@ -39,7 +51,7 @@
|
||||
- 1.0
|
||||
- 1.0
|
||||
- 1.0
|
||||
edgeSpritePriority: 1
|
||||
edgeSpritePriority: 2
|
||||
edgeSprites:
|
||||
SouthEast: /Textures/Tiles/Planet/Grass/single_edge.png
|
||||
NorthEast: /Textures/Tiles/Planet/Grass/single_edge.png
|
||||
@@ -49,8 +61,10 @@
|
||||
East: /Textures/Tiles/Planet/Grass/double_edge.png
|
||||
North: /Textures/Tiles/Planet/Grass/double_edge.png
|
||||
West: /Textures/Tiles/Planet/Grass/double_edge.png
|
||||
baseTurf: CP14FloorPlanetDirt
|
||||
isSubfloor: true
|
||||
baseTurf: CP14FloorDirt
|
||||
deconstructTools: [ CP14Digging ]
|
||||
itemDrop: CP14DirtEffect
|
||||
isSubfloor: false
|
||||
footstepSounds:
|
||||
collection: FootstepGrass
|
||||
heatCapacity: 10000
|
||||
|
||||
6
Resources/Prototypes/_CP14/tools.yml
Normal file
6
Resources/Prototypes/_CP14/tools.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
- type: tool
|
||||
id: CP14Digging
|
||||
name: cp14-tool-quality-digging-name
|
||||
toolName: cp14-tool-quality-digging-tool-name
|
||||
spawn: CP14Shovel
|
||||
icon: { sprite: _CP14/Objects/Tools/shovel.rsi, state: icon}
|
||||
Reference in New Issue
Block a user