generated from NeoForgeMDKs/MDK-1.21-ModDevGradle
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
247 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
src/generated/resources/.cache/e0d3d0b8d9c807675613821fa865a35f707cd83f
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
// 1.21.1 2024-09-06T14:19:09.142399 Data Maps | ||
// 1.21.1 2024-11-18T21:41:02.6763367 Data Maps | ||
08cbba1cee30ccded1912b69e8daba63f0bce421 data/neoforge/data_maps/item/compostables.json | ||
89ae608dc3591441aa01b7bcad52e4309e9de471 data/neoforge/data_maps/item/furnace_fuels.json |
16 changes: 16 additions & 0 deletions
16
src/generated/resources/assets/tutorialmod/blockstates/radish_crop.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"variants": { | ||
"age=0": { | ||
"model": "tutorialmod:block/radish_crop_stage0" | ||
}, | ||
"age=1": { | ||
"model": "tutorialmod:block/radish_crop_stage1" | ||
}, | ||
"age=2": { | ||
"model": "tutorialmod:block/radish_crop_stage2" | ||
}, | ||
"age=3": { | ||
"model": "tutorialmod:block/radish_crop_stage3" | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/generated/resources/assets/tutorialmod/models/block/radish_crop_stage0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"parent": "minecraft:block/crop", | ||
"render_type": "minecraft:cutout", | ||
"textures": { | ||
"crop": "tutorialmod:block/radish_crop_stage0" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/generated/resources/assets/tutorialmod/models/block/radish_crop_stage1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"parent": "minecraft:block/crop", | ||
"render_type": "minecraft:cutout", | ||
"textures": { | ||
"crop": "tutorialmod:block/radish_crop_stage1" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/generated/resources/assets/tutorialmod/models/block/radish_crop_stage2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"parent": "minecraft:block/crop", | ||
"render_type": "minecraft:cutout", | ||
"textures": { | ||
"crop": "tutorialmod:block/radish_crop_stage2" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/generated/resources/assets/tutorialmod/models/block/radish_crop_stage3.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"parent": "minecraft:block/crop", | ||
"render_type": "minecraft:cutout", | ||
"textures": { | ||
"crop": "tutorialmod:block/radish_crop_stage3" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/generated/resources/assets/tutorialmod/models/item/radish_seeds.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "tutorialmod:item/radish_seeds" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/generated/resources/data/neoforge/data_maps/item/compostables.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"values": { | ||
"tutorialmod:radish": { | ||
"chance": 0.45 | ||
}, | ||
"tutorialmod:radish_seeds": { | ||
"chance": 0.25 | ||
} | ||
} | ||
} |
69 changes: 69 additions & 0 deletions
69
src/generated/resources/data/tutorialmod/loot_table/blocks/radish_crop.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"functions": [ | ||
{ | ||
"function": "minecraft:explosion_decay" | ||
} | ||
], | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"entries": [ | ||
{ | ||
"type": "minecraft:alternatives", | ||
"children": [ | ||
{ | ||
"type": "minecraft:item", | ||
"conditions": [ | ||
{ | ||
"block": "tutorialmod:radish_crop", | ||
"condition": "minecraft:block_state_property", | ||
"properties": { | ||
"age": "3" | ||
} | ||
} | ||
], | ||
"name": "tutorialmod:radish" | ||
}, | ||
{ | ||
"type": "minecraft:item", | ||
"name": "tutorialmod:radish_seeds" | ||
} | ||
] | ||
} | ||
], | ||
"rolls": 1.0 | ||
}, | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"block": "tutorialmod:radish_crop", | ||
"condition": "minecraft:block_state_property", | ||
"properties": { | ||
"age": "3" | ||
} | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"functions": [ | ||
{ | ||
"enchantment": "minecraft:fortune", | ||
"formula": "minecraft:binomial_with_bonus_count", | ||
"function": "minecraft:apply_bonus", | ||
"parameters": { | ||
"extra": 3, | ||
"probability": 0.5714286 | ||
} | ||
} | ||
], | ||
"name": "tutorialmod:radish_seeds" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
], | ||
"random_sequence": "tutorialmod:blocks/radish_crop" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
src/main/java/net/kaupenjoe/tutorialmod/block/custom/RadishCropBlock.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package net.kaupenjoe.tutorialmod.block.custom; | ||
|
||
import net.kaupenjoe.tutorialmod.item.ModItems; | ||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.world.level.BlockGetter; | ||
import net.minecraft.world.level.ItemLike; | ||
import net.minecraft.world.level.block.Block; | ||
import net.minecraft.world.level.block.CropBlock; | ||
import net.minecraft.world.level.block.state.BlockState; | ||
import net.minecraft.world.level.block.state.StateDefinition; | ||
import net.minecraft.world.level.block.state.properties.IntegerProperty; | ||
import net.minecraft.world.phys.shapes.CollisionContext; | ||
import net.minecraft.world.phys.shapes.VoxelShape; | ||
|
||
public class RadishCropBlock extends CropBlock { | ||
public static final int MAX_AGE = 3; | ||
public static final IntegerProperty AGE = IntegerProperty.create("age", 0, 3); | ||
private static final VoxelShape[] SHAPE_BY_AGE = | ||
new VoxelShape[]{ | ||
Block.box(0.0, 0.0, 0.0, 16.0, 2.0, 16.0), | ||
Block.box(0.0, 0.0, 0.0, 16.0, 4.0, 16.0), | ||
Block.box(0.0, 0.0, 0.0, 16.0, 6.0, 16.0), | ||
Block.box(0.0, 0.0, 0.0, 16.0, 8.0, 16.0)}; | ||
|
||
|
||
public RadishCropBlock(Properties properties) { | ||
super(properties); | ||
} | ||
|
||
@Override | ||
protected VoxelShape getShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context) { | ||
return SHAPE_BY_AGE[state.getValue(AGE)]; | ||
} | ||
|
||
@Override | ||
protected ItemLike getBaseSeedId() { | ||
return ModItems.RADISH_SEEDS; | ||
} | ||
|
||
@Override | ||
public IntegerProperty getAgeProperty() { | ||
return AGE; | ||
} | ||
|
||
@Override | ||
public int getMaxAge() { | ||
return MAX_AGE; | ||
} | ||
|
||
@Override | ||
protected void createBlockStateDefinition(StateDefinition.Builder<Block, BlockState> builder) { | ||
builder.add(AGE); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.