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:
Ed
2024-05-19 00:26:52 +03:00
committed by GitHub
parent 8c7f26f860
commit b66ce952af
34 changed files with 241 additions and 18 deletions

View File

@@ -26,4 +26,9 @@
- files: ["grass_gather.ogg", "grass_gather2.ogg", "grass_gather3.ogg"]
license: "CC0-1.0"
copyright: 'by hadescolossus of Freesound.org. Cropped and mixed from stereo to mono.'
source: "https://freesound.org/people/hadescolossus/sounds/705228/"
source: "https://freesound.org/people/hadescolossus/sounds/705228/"
- files: ["shovel_dig1.ogg", "shovel_dig2.ogg", "shovel_dig3.ogg", "shovel_dig4.ogg", "shovel_dig5.ogg"]
license: "CC0-1.0"
copyright: 'by Ali_6868 of Freesound.org. Cropped and mixed from stereo to mono.'
source: "https://freesound.org/people/Ali_6868/sounds/384361/"

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -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: ""

View File

@@ -0,0 +1,10 @@
- type: entity
id: CP14RandomDirtLootSpawner
name: dirt spawner
parent: CP14DirtEffect
components:
- type: RandomSpawner
prototypes:
- CP14DirtBlock
chance: 1
deleteSpawnerAfterSpawn: false

View File

@@ -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

View 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

View File

@@ -59,4 +59,4 @@
sprite: _CP14/Objects/Ores/ore_gold.rsi
layers:
- state: ore1
map: ["random"]
map: ["random"]

View File

@@ -1,6 +0,0 @@
- type: soundCollection
id: CP14CrystalDings
files:
- /Audio/_CP14/Effects/crystal_ding.ogg
- /Audio/_CP14/Effects/crystal_ding2.ogg

View 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

View File

@@ -0,0 +1,6 @@
- type: stack
id: CP14Dirt
name: dirt block
spawn: CP14DirtBlock
maxCount: 10
itemSize: 5

View File

@@ -30,7 +30,6 @@
- 1.0
- 1.0
- 1.0
- 1.0
baseTurf: CP14FloorBase #Recursivle indestructible
isSubfloor: true
footstepSounds:

View File

@@ -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

View 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}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@@ -0,0 +1,45 @@
{
"version": 1,
"size": {
"x": 48,
"y": 48
},
"license": "CC-BY-SA-3.0",
"copyright": "Created by TheShuEd",
"states": [
{
"name": "dirt1",
"delays": [
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
2
]
]
},
{
"name": "dirt2",
"delays": [
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
2
]
]
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 577 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 750 B

View File

@@ -0,0 +1,20 @@
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"license": "CC-BY-SA-3.0",
"copyright": "Created by TheShuEd (Github) for CrystallPunk14",
"states": [
{
"name": "dirt"
},
{
"name": "dirt_2"
},
{
"name": "dirt_3"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 748 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 749 B

View File

@@ -0,0 +1,22 @@
{
"version": 1,
"license": "CC-BY-NC-SA-3.0",
"copyright": "Created by TheShuEd (Github) for CrystallPunk",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
}
]
}

View File

@@ -0,0 +1,9 @@
- files: ["cavedrought.png"]
license: "CC-BY-SA-3.0"
copyright: "Space Station 14, recolored by TheShuEd"
source: "https://github.com/crystallpunk-14/crystall-punk-14/"
- files: ["double_edge.png", "single_edge.png", "triple_edge.png"]
license: "CC-BY-SA-3.0"
copyright: "Created by TheShuEd"
source: "https://github.com/crystallpunk-14/crystall-punk-14/"

View File

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 712 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 554 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1009 B

View File

@@ -6,11 +6,6 @@
copyright: "Space Station 14, recolored by TheShuEd"
source: "https://github.com/crystallpunk-14/crystall-punk-14/"
- files: ["cavedrought.png"]
license: "CC-BY-SA-3.0"
copyright: "Space Station 14, recolored by TheShuEd"
source: "https://github.com/crystallpunk-14/crystall-punk-14/"
- files: ["foundation.png"]
license: "CC-BY-SA-3.0"
copyright: "by TheShuEd"