generated from NeoForgeMDKs/MDK-1.21-NeoGradle
-
Notifications
You must be signed in to change notification settings - Fork 0
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
MCZME
committed
Aug 28, 2024
1 parent
95c97bb
commit b4dfb89
Showing
31 changed files
with
283 additions
and
11 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
src/generated/resources/.cache/59eb3dbb5f86130e09b3c62d89b9525ee01cf52d
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,6 +1,7 @@ | ||
// 1.21 2024-08-22T18:03:26.4830973 Loot Tables | ||
// 1.21 2024-08-28T08:40:40.9916727 Loot Tables | ||
032b2242788b8411178136ca48214246ef2af8a9 data/lingshi/loot_table/blocks/chopping_board.json | ||
63e60d75a79e0a64eb6338f6bc98dddd6a8d6a0b data/lingshi/loot_table/blocks/cooking_pot.json | ||
67cc122cf5e7e5865ff9bc81fec6e8371225b0d6 data/lingshi/loot_table/blocks/skillet.json | ||
ac9b000c0cff0859a940afc1f40de52b939a1c68 data/lingshi/loot_table/blocks/stove.json | ||
c843630bb0739aad37078f0119c9cc31f5316c3a data/lingshi/loot_table/blocks/tea_leaf.json | ||
3cd0ced47f090fec162cddcb8b2f75284fa134cb data/lingshi/loot_table/blocks/tea_tree.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
4 changes: 2 additions & 2 deletions
4
src/generated/resources/.cache/85f12f813aff948f91f5cd129c0ffa86bcb17361
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,2 @@ | ||
// 1.21 2024-08-28T02:42:11.0041386 Languages: zh_cn for mod: lingshi | ||
b2ef29629af36b1f8e45f0739bad28409bf893ba assets/lingshi/lang/zh_cn.json | ||
// 1.21 2024-08-28T08:40:40.9956752 Languages: zh_cn for mod: lingshi | ||
f05d3fc257903f3b78dc6d4a231fd0aded91d8c7 assets/lingshi/lang/zh_cn.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
2 changes: 1 addition & 1 deletion
2
src/generated/resources/.cache/a189ba72f94c72036c5b4a6381591ea76d224567
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,2 @@ | ||
// 1.21 2024-08-08T18:35:43.0628337 Block States: lingshi | ||
// 1.21 2024-08-28T10:28:02.8785778 Block States: lingshi | ||
c5265867b72222a7b9a0c319c8593c91a69953ab assets/lingshi/blockstates/chopping_board.json |
4 changes: 2 additions & 2 deletions
4
src/generated/resources/.cache/d88813880ae3e40e9724fa9bc86e438c1f5ddb3d
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,5 +1,5 @@ | ||
// 1.21 2024-08-28T02:56:53.2804386 Tags for minecraft:block mod id lingshi | ||
// 1.21 2024-08-28T08:40:40.9936741 Tags for minecraft:block mod id lingshi | ||
639716446e0ad4bc759f5d086b91d0e4a9215ab7 data/lingshi/tags/block/can_support.json | ||
8f3ae1f87856cf69d686ec0be92f6b700f51bd30 data/lingshi/tags/block/heat_source.json | ||
32c23f06ab44da6f1bd718c63c5ae376f033b411 data/lingshi/tags/block/heat_source.json | ||
e00d57f2828f9f55903e8c8c9f4b95dfeca4135d data/minecraft/tags/block/mineable/axe.json | ||
5edc606bce3187f422626ac4390c718b9b4f881b data/minecraft/tags/block/mineable/pickaxe.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
3 changes: 3 additions & 0 deletions
3
src/generated/resources/assets/lingshi/models/item/stove.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,3 @@ | ||
{ | ||
"parent": "lingshi:block/stove" | ||
} |
32 changes: 32 additions & 0 deletions
32
src/generated/resources/data/lingshi/advancement/recipes/decorations/stove.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,32 @@ | ||
{ | ||
"parent": "minecraft:recipes/root", | ||
"criteria": { | ||
"has_iron_ingot": { | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"items": "minecraft:mud_bricks" | ||
} | ||
] | ||
}, | ||
"trigger": "minecraft:inventory_changed" | ||
}, | ||
"has_the_recipe": { | ||
"conditions": { | ||
"recipe": "lingshi:stove" | ||
}, | ||
"trigger": "minecraft:recipe_unlocked" | ||
} | ||
}, | ||
"requirements": [ | ||
[ | ||
"has_the_recipe", | ||
"has_iron_ingot" | ||
] | ||
], | ||
"rewards": { | ||
"recipes": [ | ||
"lingshi:stove" | ||
] | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/generated/resources/data/lingshi/loot_table/blocks/stove.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,21 @@ | ||
{ | ||
"type": "minecraft:block", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:survives_explosion" | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"name": "lingshi:stove" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
], | ||
"random_sequence": "lingshi:blocks/stove" | ||
} |
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,20 @@ | ||
{ | ||
"type": "minecraft:crafting_shaped", | ||
"category": "misc", | ||
"key": { | ||
"A": { | ||
"item": "minecraft:campfire" | ||
}, | ||
"X": { | ||
"item": "minecraft:mud_bricks" | ||
} | ||
}, | ||
"pattern": [ | ||
"X X", | ||
"XAX" | ||
], | ||
"result": { | ||
"count": 1, | ||
"id": "lingshi:stove" | ||
} | ||
} |
3 changes: 2 additions & 1 deletion
3
src/generated/resources/data/lingshi/tags/block/heat_source.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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"values": [ | ||
"minecraft:campfire", | ||
"minecraft:magma_block" | ||
"minecraft:magma_block", | ||
"lingshi:stove" | ||
] | ||
} |
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,52 @@ | ||
package mczme.lingshi.common.block; | ||
|
||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.core.Direction; | ||
import net.minecraft.world.InteractionHand; | ||
import net.minecraft.world.ItemInteractionResult; | ||
import net.minecraft.world.entity.Entity; | ||
import net.minecraft.world.entity.LivingEntity; | ||
import net.minecraft.world.entity.player.Player; | ||
import net.minecraft.world.item.ItemStack; | ||
import net.minecraft.world.item.context.BlockPlaceContext; | ||
import net.minecraft.world.level.Level; | ||
import net.minecraft.world.level.block.Block; | ||
import net.minecraft.world.level.block.state.BlockState; | ||
import net.minecraft.world.level.block.state.StateDefinition; | ||
import net.minecraft.world.level.block.state.properties.BlockStateProperties; | ||
import net.minecraft.world.level.block.state.properties.BooleanProperty; | ||
import net.minecraft.world.level.block.state.properties.DirectionProperty; | ||
import net.minecraft.world.phys.BlockHitResult; | ||
|
||
public class StoveBlock extends Block { | ||
|
||
public static final DirectionProperty FACING = BlockStateProperties.HORIZONTAL_FACING; | ||
public static final BooleanProperty LIT = BlockStateProperties.LIT; | ||
|
||
public StoveBlock(Properties properties) { | ||
super(properties); | ||
this.registerDefaultState(this.stateDefinition.any().setValue(FACING, Direction.NORTH).setValue(LIT, true)); | ||
} | ||
|
||
public ItemInteractionResult useItemOn(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult){ | ||
return super.useItemOn(pStack, pState, pLevel, pPos, pPlayer, pHand, pHitResult); | ||
} | ||
|
||
@Override | ||
public void stepOn(Level pLevel, BlockPos pPos, BlockState pState, Entity pEntity) { | ||
if (!pEntity.isSteppingCarefully() && pEntity instanceof LivingEntity) { | ||
pEntity.hurt(pLevel.damageSources().hotFloor(), 1.0F); | ||
} | ||
super.stepOn(pLevel, pPos, pState, pEntity); | ||
} | ||
|
||
@Override | ||
public BlockState getStateForPlacement(BlockPlaceContext pContext) { | ||
return this.defaultBlockState().setValue(FACING, pContext.getHorizontalDirection()); | ||
} | ||
|
||
@Override | ||
protected void createBlockStateDefinition(StateDefinition.Builder<Block, BlockState> pBuilder) { | ||
pBuilder.add(FACING, LIT); | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"variants": { | ||
"facing=east,lit=false": { | ||
"model": "lingshi:block/stove", | ||
"y": 270 | ||
}, | ||
"facing=east,lit=true": { | ||
"model": "lingshi:block/stove_fire", | ||
"y": 270 | ||
}, | ||
"facing=north,lit=false": { | ||
"model": "lingshi:block/stove", | ||
"y": 180 | ||
}, | ||
"facing=north,lit=true": { | ||
"model": "lingshi:block/stove_fire", | ||
"y": 180 | ||
}, | ||
"facing=south,lit=false": { | ||
"model": "lingshi:block/stove" | ||
}, | ||
"facing=south,lit=true": { | ||
"model": "lingshi:block/stove_fire" | ||
}, | ||
"facing=west,lit=false": { | ||
"model": "lingshi:block/stove", | ||
"y": 90 | ||
}, | ||
"facing=west,lit=true": { | ||
"model": "lingshi:block/stove_fire", | ||
"y": 90 | ||
} | ||
} | ||
} |
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 @@ | ||
{ | ||
"credit": "Made with Blockbench", | ||
"textures": { | ||
"1": "lingshi:block/stove_front", | ||
"2": "lingshi:block/stove_top", | ||
"3": "lingshi:block/stove_side", | ||
"particle": "lingshi:block/stove_front" | ||
}, | ||
"elements": [ | ||
{ | ||
"from": [0, 0, 0], | ||
"to": [16, 16, 16], | ||
"faces": { | ||
"north": {"uv": [0, 0, 16, 16], "texture": "#1"}, | ||
"east": {"uv": [0, 0, 16, 16], "texture": "#3"}, | ||
"south": {"uv": [0, 0, 16, 16], "texture": "#3"}, | ||
"west": {"uv": [0, 0, 16, 16], "texture": "#3"}, | ||
"up": {"uv": [0, 0, 16, 16], "rotation": 90, "texture": "#2"}, | ||
"down": {"uv": [0, 0, 16, 16], "rotation": 90, "texture": "#3"} | ||
} | ||
} | ||
], | ||
"display": { | ||
"thirdperson_righthand": { | ||
"rotation": [75, 45, 0], | ||
"translation": [0, 2.5, 0], | ||
"scale": [0.375, 0.375, 0.375] | ||
}, | ||
"thirdperson_lefthand": { | ||
"rotation": [75, 45, 0], | ||
"translation": [0, 2.5, 0], | ||
"scale": [0.375, 0.375, 0.375] | ||
}, | ||
"firstperson_righthand": { | ||
"rotation": [0, 45, 0], | ||
"scale": [0.4, 0.4, 0.4] | ||
}, | ||
"firstperson_lefthand": { | ||
"rotation": [0, 225, 0], | ||
"scale": [0.4, 0.4, 0.4] | ||
}, | ||
"ground": { | ||
"translation": [0, 3, 0], | ||
"scale": [0.25, 0.25, 0.25] | ||
}, | ||
"gui": { | ||
"rotation": [30, 225, 0], | ||
"scale": [0.625, 0.625, 0.625] | ||
}, | ||
"fixed": { | ||
"scale": [0.5, 0.5, 0.5] | ||
} | ||
} | ||
} |
Oops, something went wrong.