generated from neoforged/MDK
-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
dfb1579
commit 66b5108
Showing
35 changed files
with
382 additions
and
11 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
2 changes: 2 additions & 0 deletions
2
src/generated/resources/.cache/735031f3addf80804addae5e3f53249900116f1e
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,2 @@ | ||
// 1.20.4 2024-03-06T16:24:28.3504764 Sound Definitions | ||
e34bbd29e26f4ac4e3c41786f3c4a661d0dc7fe3 assets/bibliocraft/sounds.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
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
4 changes: 2 additions & 2 deletions
4
src/generated/resources/.cache/d8d9664aab66d4b32b72030c7c0b2fbfc87cde08
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.20.4 2024-03-06T00:41:06.6735142 Languages: en_us for mod: bibliocraft | ||
73a36a9f7643fa5bbe7e49d8d1a13030212eb19f assets/bibliocraft/lang/en_us.json | ||
// 1.20.4 2024-03-06T16:24:28.2284767 Languages: en_us for mod: bibliocraft | ||
7b6dc85f35cbd0bf052a95f95e755eef57ed4413 assets/bibliocraft/lang/en_us.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
7 changes: 7 additions & 0 deletions
7
src/generated/resources/assets/bibliocraft/blockstates/desk_bell.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 @@ | ||
{ | ||
"variants": { | ||
"": { | ||
"model": "bibliocraft:block/desk_bell" | ||
} | ||
} | ||
} |
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/bibliocraft/models/item/desk_bell.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": "bibliocraft:block/desk_bell" | ||
} |
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 @@ | ||
{ | ||
"desk_bell": { | ||
"sounds": [ | ||
"bibliocraft:desk_bell_1", | ||
"bibliocraft:desk_bell_2", | ||
"bibliocraft:desk_bell_3", | ||
"bibliocraft:desk_bell_4" | ||
] | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
src/generated/resources/data/bibliocraft/advancements/recipes/decorations/desk_bell.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_redstone": { | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"tag": "forge:dusts/redstone" | ||
} | ||
] | ||
}, | ||
"trigger": "minecraft:inventory_changed" | ||
}, | ||
"has_the_recipe": { | ||
"conditions": { | ||
"recipe": "bibliocraft:desk_bell" | ||
}, | ||
"trigger": "minecraft:recipe_unlocked" | ||
} | ||
}, | ||
"requirements": [ | ||
[ | ||
"has_the_recipe", | ||
"has_redstone" | ||
] | ||
], | ||
"rewards": { | ||
"recipes": [ | ||
"bibliocraft:desk_bell" | ||
] | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/generated/resources/data/bibliocraft/loot_tables/blocks/desk_bell.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": "bibliocraft:desk_bell" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
], | ||
"random_sequence": "bibliocraft:blocks/desk_bell" | ||
} |
23 changes: 23 additions & 0 deletions
23
src/generated/resources/data/bibliocraft/recipes/desk_bell.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,23 @@ | ||
{ | ||
"type": "minecraft:crafting_shaped", | ||
"category": "misc", | ||
"key": { | ||
"B": { | ||
"item": "minecraft:stone_button" | ||
}, | ||
"I": { | ||
"tag": "forge:ingots/iron" | ||
}, | ||
"R": { | ||
"tag": "forge:dusts/redstone" | ||
} | ||
}, | ||
"pattern": [ | ||
" B ", | ||
" I ", | ||
"IRI" | ||
], | ||
"result": { | ||
"item": "bibliocraft:desk_bell" | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
src/generated/resources/data/minecraft/tags/blocks/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
58 changes: 58 additions & 0 deletions
58
src/main/java/com/github/minecraftschurlimods/bibliocraft/content/DeskBellBlock.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,58 @@ | ||
package com.github.minecraftschurlimods.bibliocraft.content; | ||
|
||
import com.github.minecraftschurlimods.bibliocraft.init.BCSoundEvents; | ||
import com.github.minecraftschurlimods.bibliocraft.util.ShapeUtil; | ||
import com.github.minecraftschurlimods.bibliocraft.util.content.BCWaterloggedBlock; | ||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.sounds.SoundSource; | ||
import net.minecraft.world.InteractionHand; | ||
import net.minecraft.world.InteractionResult; | ||
import net.minecraft.world.entity.player.Player; | ||
import net.minecraft.world.level.BlockGetter; | ||
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.phys.BlockHitResult; | ||
import net.minecraft.world.phys.shapes.CollisionContext; | ||
import net.minecraft.world.phys.shapes.Shapes; | ||
import net.minecraft.world.phys.shapes.VoxelShape; | ||
|
||
@SuppressWarnings("deprecation") | ||
public class DeskBellBlock extends BCWaterloggedBlock { | ||
private static final VoxelShape SHAPE = ShapeUtil.combine( | ||
Shapes.box(0.375, 0, 0.375, 0.625, 0.125, 0.625), | ||
Shapes.box(0.40625, 0.125, 0.40625, 0.59375, 0.15625, 0.59375), | ||
Shapes.box(0.40625, 0, 0.34375, 0.59375, 0.09375, 0.375), | ||
Shapes.box(0.40625, 0, 0.625, 0.59375, 0.09375, 0.65625), | ||
Shapes.box(0.34375, 0, 0.40625, 0.375, 0.09375, 0.59375), | ||
Shapes.box(0.625, 0, 0.40625, 0.65625, 0.09375, 0.59375), | ||
Shapes.box(0.484375, 0.15625, 0.484375, 0.515625, 0.171875, 0.515625), | ||
Shapes.box(0.46875, 0.171875, 0.46875, 0.53125, 0.203125, 0.53125)); | ||
|
||
public DeskBellBlock(Properties properties) { | ||
super(properties); | ||
} | ||
|
||
@Override | ||
public VoxelShape getShape(BlockState pState, BlockGetter pLevel, BlockPos pPos, CollisionContext pContext) { | ||
return SHAPE; | ||
} | ||
|
||
@Override | ||
public void neighborChanged(BlockState state, Level level, BlockPos pos, Block neighborBlock, BlockPos neighborPos, boolean movedByPiston) { | ||
super.neighborChanged(state, level, pos, neighborBlock, neighborPos, movedByPiston); | ||
if (!level.isClientSide() && level.hasNeighborSignal(pos.below())) { | ||
playSound(level, pos); | ||
} | ||
} | ||
|
||
@Override | ||
public InteractionResult use(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hit) { | ||
playSound(level, pos); | ||
return InteractionResult.SUCCESS; | ||
} | ||
|
||
private void playSound(Level level, BlockPos pos) { | ||
level.playSound(null, pos, BCSoundEvents.DESK_BELL.get(), SoundSource.BLOCKS, 1, 1); | ||
} | ||
} |
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
25 changes: 25 additions & 0 deletions
25
...om/github/minecraftschurlimods/bibliocraft/datagen/assets/BCSoundDefinitionsProvider.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,25 @@ | ||
package com.github.minecraftschurlimods.bibliocraft.datagen.assets; | ||
|
||
import com.github.minecraftschurlimods.bibliocraft.Bibliocraft; | ||
import com.github.minecraftschurlimods.bibliocraft.init.BCSoundEvents; | ||
import net.minecraft.data.PackOutput; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.neoforged.neoforge.common.data.ExistingFileHelper; | ||
import net.neoforged.neoforge.common.data.SoundDefinition; | ||
import net.neoforged.neoforge.common.data.SoundDefinitionsProvider; | ||
|
||
public class BCSoundDefinitionsProvider extends SoundDefinitionsProvider { | ||
public BCSoundDefinitionsProvider(PackOutput output, ExistingFileHelper helper) { | ||
super(output, Bibliocraft.MOD_ID, helper); | ||
} | ||
|
||
@Override | ||
public void registerSounds() { | ||
add(BCSoundEvents.DESK_BELL.get(), SoundDefinition.definition().with( | ||
sound(new ResourceLocation(Bibliocraft.MOD_ID, "desk_bell_1")), | ||
sound(new ResourceLocation(Bibliocraft.MOD_ID, "desk_bell_2")), | ||
sound(new ResourceLocation(Bibliocraft.MOD_ID, "desk_bell_3")), | ||
sound(new ResourceLocation(Bibliocraft.MOD_ID, "desk_bell_4")) | ||
)); | ||
} | ||
} |
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.