partial implementation of cotton crop

- all functionality except loot table for the cotton crop block has been added
- textures should be considered placeholders and are subject to change
This commit is contained in:
CosmoOrSth
2024-05-31 20:44:23 +05:30
parent f3af0c5d91
commit f06ceb345c
20 changed files with 219 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
{
"variants": {
"age=0": {
"model": "terraoriginum:block/cotton_crop_stage0"
},
"age=1": {
"model": "terraoriginum:block/cotton_crop_stage0"
},
"age=2": {
"model": "terraoriginum:block/cotton_crop_stage1"
},
"age=3": {
"model": "terraoriginum:block/cotton_crop_stage1"
},
"age=4": {
"model": "terraoriginum:block/cotton_crop_stage2"
},
"age=5": {
"model": "terraoriginum:block/cotton_crop_stage2"
},
"age=6": {
"model": "terraoriginum:block/cotton_crop_stage2"
},
"age=7": {
"model": "terraoriginum:block/cotton_crop_stage3"
}
}
}

View File

@@ -3,6 +3,9 @@
"item.terraoriginum.mync_eye": "you shouldnt have this",
"item.terraoriginum.umbrella": "Umbrella",
"item.terraoriginum.cotton_seeds": "Cotton Seeds",
"item.terraoriginum.cotton_ball": "Cotton ball",
"death.attack.lack_of_ectoplasm": "%1$s faded away",
"death.attack.lack_of_ectoplasm.player": "%1$s faded away whilst trying to escape %2$s",

View File

@@ -0,0 +1,7 @@
{
"parent": "minecraft:block/crop",
"textures": {
"crop": "terraoriginum:block/cotton_crop_block_stage0"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "minecraft:block/crop",
"textures": {
"crop": "terraoriginum:block/cotton_crop_block_stage1"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "minecraft:block/crop",
"textures": {
"crop": "terraoriginum:block/cotton_crop_block_stage2"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "minecraft:block/crop",
"textures": {
"crop": "terraoriginum:block/cotton_crop_block_stage3"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "terraoriginum:item/cotton_ball"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "terraoriginum:item/cotton_seeds"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 430 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 B

View File

@@ -0,0 +1,68 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"bonus_rolls": 0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "terraoriginum:cotton_ball",
"conditions": [
{
"condition": "minecraft:block_state_property",
"block": "terraoriginum:cotton_crop_block",
"properties": {
"age": "7"
}
}
]
},
{
"type": "minecraft:item",
"name": "terraoriginum:cotton_seeds"
}
]
}
]
},
{
"rolls": 1,
"bonus_rolls": 0,
"entries": [
{
"type": "minecraft:item",
"name": "terraoriginum:cotton_seeds",
"functions": [
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:binomial_with_bonus_count",
"parameters": {
"extra": 3,
"probability": 0.5714286
}
}
]
}
],
"conditions": [
{
"condition": "minecraft:block_state_property",
"block": "terraoriginum:cotton_crop_block",
"properties": {
"age": "7"
}
}
]
}
],
"functions": [
{
"function": "minecraft:explosion_decay"
}
]
}