generated from neoforged/MDK
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial Work at the gooPattern Block
- Loading branch information
1 parent
eb422b9
commit 246a641
Showing
17 changed files
with
181 additions
and
21 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,3 +1,4 @@ | ||
// 1.20.4 2024-02-24T15:43:52.02226 Loot Tables | ||
// 1.20.4 2024-02-24T23:19:21.1599424 Loot Tables | ||
9d014f2566cbaceeb72689cf25beee59806d4a11 data/justdirethings/loot_tables/blocks/dire_iron_block.json | ||
9d62cc762313305bbe032473310bafd15bcdb8bd data/justdirethings/loot_tables/blocks/gooblock_tier1.json | ||
fcef2a947be7443c277f0bc8a7ac5379f2084822 data/justdirethings/loot_tables/blocks/goopatternblock.json |
4 changes: 3 additions & 1 deletion
4
src/generated/resources/.cache/a1a2ec2da1e0c65903879d2c88015afc97528c8f
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,7 @@ | ||
// 1.20.4 2024-02-24T15:43:52.0212591 Block States: justdirethings | ||
// 1.20.4 2024-02-24T23:19:21.1579408 Block States: justdirethings | ||
920cb18580ea999cb4670bf40b25ba5c2a914032 assets/justdirethings/blockstates/dire_iron_block.json | ||
5a4cd222f3bde8915594a1363e2758ee5208517c assets/justdirethings/blockstates/gooblock_tier1.json | ||
c7729d4e41b5ab3c651235a397de2bf7853c6aa9 assets/justdirethings/blockstates/goopatternblock.json | ||
cffdbed997636075f20d3cdcd18712085357f847 assets/justdirethings/models/block/dire_iron_block.json | ||
42066c831f2979ed0f605a673e9b7cbdcb5e3f87 assets/justdirethings/models/block/gooblock_tier1.json | ||
ceedc7d14dd60fc6bbce216fa9fca00031083688 assets/justdirethings/models/block/goopatternblock.json |
30 changes: 30 additions & 0 deletions
30
src/generated/resources/assets/justdirethings/blockstates/goopatternblock.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,30 @@ | ||
{ | ||
"variants": { | ||
"facing=down": { | ||
"model": "justdirethings:block/goopatternblock", | ||
"x": 180 | ||
}, | ||
"facing=east": { | ||
"model": "justdirethings:block/goopatternblock", | ||
"x": 90, | ||
"y": 90 | ||
}, | ||
"facing=north": { | ||
"model": "justdirethings:block/goopatternblock", | ||
"x": 90 | ||
}, | ||
"facing=south": { | ||
"model": "justdirethings:block/goopatternblock", | ||
"x": 90, | ||
"y": 180 | ||
}, | ||
"facing=up": { | ||
"model": "justdirethings:block/goopatternblock" | ||
}, | ||
"facing=west": { | ||
"model": "justdirethings:block/goopatternblock", | ||
"x": 90, | ||
"y": 270 | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/generated/resources/assets/justdirethings/models/block/goopatternblock.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,9 @@ | ||
{ | ||
"parent": "minecraft:block/orientable_with_bottom", | ||
"textures": { | ||
"bottom": "justdirethings:block/goopatterblock_bottom", | ||
"front": "justdirethings:block/goopatterblock_side", | ||
"side": "justdirethings:block/goopatterblock_side", | ||
"top": "justdirethings:block/goopatterblock_top" | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/generated/resources/data/justdirethings/loot_tables/blocks/goopatternblock.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": "minecraft:air" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
], | ||
"random_sequence": "justdirethings:blocks/goopatternblock" | ||
} |
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
27 changes: 27 additions & 0 deletions
27
src/main/java/com/direwolf20/justdirethings/common/blocks/gooblocks/GooPatternBlock.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,27 @@ | ||
package com.direwolf20.justdirethings.common.blocks.gooblocks; | ||
|
||
import net.minecraft.world.item.context.BlockPlaceContext; | ||
import net.minecraft.world.level.block.Block; | ||
import net.minecraft.world.level.block.SoundType; | ||
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; | ||
|
||
public class GooPatternBlock extends Block { | ||
public GooPatternBlock() { | ||
super(Properties.of() | ||
.sound(SoundType.FUNGUS) | ||
.strength(2.0f) | ||
); | ||
} | ||
|
||
@Override | ||
public BlockState getStateForPlacement(BlockPlaceContext context) { | ||
return this.defaultBlockState().setValue(BlockStateProperties.FACING, context.getClickedFace().getOpposite()); | ||
} | ||
|
||
@Override | ||
protected void createBlockStateDefinition(StateDefinition.Builder<Block, BlockState> builder) { | ||
builder.add(BlockStateProperties.FACING); | ||
} | ||
} |
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
Binary file added
BIN
+3.19 KB
src/main/resources/assets/justdirethings/textures/block/goopatterblock_bottom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.16 KB
src/main/resources/assets/justdirethings/textures/block/goopatterblock_side.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3 KB
src/main/resources/assets/justdirethings/textures/block/goopatterblock_top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+117 Bytes
(100%)
src/main/resources/assets/justdirethings/textures/misc/goorender10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+16 Bytes
(100%)
src/main/resources/assets/justdirethings/textures/misc/goorender5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.