generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from warior456/main
main to portal
- Loading branch information
Showing
15 changed files
with
108 additions
and
9 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
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
23 changes: 23 additions & 0 deletions
23
src/main/java/net/ugi/sculk_depths/block/custom/AuricVinesBlock.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,23 @@ | ||
package net.ugi.sculk_depths.block.custom; | ||
|
||
import com.mojang.serialization.MapCodec; | ||
import net.minecraft.block.*; | ||
import net.minecraft.util.math.Direction; | ||
import net.minecraft.util.shape.VoxelShape; | ||
import net.ugi.sculk_depths.block.ModBlocks; | ||
|
||
public class AuricVinesBlock extends AbstractPlantBlock { | ||
@Override | ||
protected MapCodec<? extends AbstractPlantBlock> getCodec() { | ||
return null; | ||
} | ||
public static final VoxelShape SHAPE = Block.createCuboidShape(1.0, 0.0, 1.0, 15.0, 16.0, 15.0); | ||
|
||
public AuricVinesBlock(AbstractBlock.Settings settings) { | ||
super(settings, Direction.DOWN, SHAPE, false); | ||
} | ||
|
||
protected AbstractPlantStemBlock getStem() { | ||
return (AbstractPlantStemBlock) ModBlocks.AURIC_VINES_END; | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
src/main/java/net/ugi/sculk_depths/block/custom/AuricVinesEndBlock.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,37 @@ | ||
package net.ugi.sculk_depths.block.custom; | ||
|
||
|
||
import com.mojang.serialization.MapCodec; | ||
import net.minecraft.block.AbstractPlantStemBlock; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.block.BlockState; | ||
import net.minecraft.block.VineLogic; | ||
import net.minecraft.util.math.Direction; | ||
import net.minecraft.util.math.random.Random; | ||
import net.minecraft.util.shape.VoxelShape; | ||
import net.ugi.sculk_depths.block.ModBlocks; | ||
|
||
public class AuricVinesEndBlock extends AbstractPlantStemBlock { | ||
@Override | ||
protected MapCodec<? extends AbstractPlantStemBlock> getCodec() { | ||
return null; | ||
} | ||
|
||
protected static final VoxelShape SHAPE = Block.createCuboidShape(1.0, 0.0, 1.0, 15.0, 16.0, 15.0); | ||
|
||
public AuricVinesEndBlock(Settings settings) { | ||
super(settings, Direction.DOWN, SHAPE, false, 0.1); | ||
} | ||
|
||
protected int getGrowthLength(Random random) { | ||
return VineLogic.getGrowthLength(random); | ||
} | ||
|
||
protected Block getPlant() { | ||
return ModBlocks.AURIC_VINES; | ||
} | ||
|
||
protected boolean chooseStemState(BlockState state) { | ||
return VineLogic.isValidForWeepingStem(state); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/resources/assets/sculk_depths/blockstates/auric_vines.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": "sculk_depths:block/auric_vines" | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/resources/assets/sculk_depths/blockstates/auric_vines_end.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": "sculk_depths:block/auric_vines_end" | ||
} | ||
} | ||
} |
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
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/sculk_depths/models/block/auric_vines.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:block/tinted_cross", | ||
"textures": { | ||
"cross": "sculk_depths:block/auric_vines" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/sculk_depths/models/block/auric_vines_end.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:block/tinted_cross", | ||
"textures": { | ||
"cross": "sculk_depths:block/auric_vines_end" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/sculk_depths/models/item/auric_vines_end.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": "sculk_depths:block/auric_vines" | ||
} | ||
} |
Binary file added
BIN
+337 Bytes
src/main/resources/assets/sculk_depths/textures/block/auric_vines.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
+485 Bytes
src/main/resources/assets/sculk_depths/textures/block/auric_vines_end.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.