-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial work on Palm & Deadwood sign
- Loading branch information
1 parent
f9ae70d
commit 4020b85
Showing
26 changed files
with
226 additions
and
11 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
src/main/java/com/teammetallurgy/atum/blocks/wood/AtumStandingSignBlock.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,21 @@ | ||
package com.teammetallurgy.atum.blocks.wood; | ||
|
||
import com.teammetallurgy.atum.init.AtumTileEntities; | ||
import net.minecraft.block.StandingSignBlock; | ||
import net.minecraft.block.WoodType; | ||
import net.minecraft.tileentity.TileEntity; | ||
import net.minecraft.world.IBlockReader; | ||
|
||
import javax.annotation.Nonnull; | ||
|
||
public class AtumStandingSignBlock extends StandingSignBlock { | ||
|
||
public AtumStandingSignBlock(Properties properties, WoodType type) { | ||
super(properties, type); | ||
} | ||
|
||
@Override | ||
public TileEntity createNewTileEntity(@Nonnull IBlockReader world) { | ||
return AtumTileEntities.SIGN.create(); | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/main/java/com/teammetallurgy/atum/blocks/wood/AtumWallSignBlock.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,26 @@ | ||
package com.teammetallurgy.atum.blocks.wood; | ||
|
||
import com.teammetallurgy.atum.init.AtumTileEntities; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.block.WallSignBlock; | ||
import net.minecraft.block.WoodType; | ||
import net.minecraft.tileentity.TileEntity; | ||
import net.minecraft.world.IBlockReader; | ||
|
||
import javax.annotation.Nonnull; | ||
import java.util.ArrayList; | ||
import java.util.HashMap; | ||
import java.util.List; | ||
|
||
public class AtumWallSignBlock extends WallSignBlock { | ||
public static final HashMap<Block, Block> WALL_SIGN_BLOCKS = new HashMap<>(); | ||
|
||
public AtumWallSignBlock(Properties properties, WoodType type) { | ||
super(properties, type); | ||
} | ||
|
||
@Override | ||
public TileEntity createNewTileEntity(@Nonnull IBlockReader world) { | ||
return AtumTileEntities.SIGN.create(); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/com/teammetallurgy/atum/blocks/wood/AtumWoodTypes.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,12 @@ | ||
package com.teammetallurgy.atum.blocks.wood; | ||
|
||
import net.minecraft.block.WoodType; | ||
|
||
public class AtumWoodTypes extends WoodType { | ||
public static final WoodType PALM = register(new AtumWoodTypes("palm")); | ||
public static final WoodType DEADWOOD = register(new AtumWoodTypes("deadwood")); | ||
|
||
protected AtumWoodTypes(String name) { | ||
super("atum_" + name); | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/teammetallurgy/atum/blocks/wood/tileentity/AtumSignTileEntity.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,16 @@ | ||
package com.teammetallurgy.atum.blocks.wood.tileentity; | ||
|
||
import com.teammetallurgy.atum.init.AtumTileEntities; | ||
import net.minecraft.tileentity.SignTileEntity; | ||
import net.minecraft.tileentity.TileEntityType; | ||
|
||
import javax.annotation.Nonnull; | ||
|
||
public class AtumSignTileEntity extends SignTileEntity { | ||
|
||
@Override | ||
@Nonnull | ||
public TileEntityType<?> getType() { | ||
return AtumTileEntities.SIGN; | ||
} | ||
} |
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
7 changes: 7 additions & 0 deletions
7
src/main/resources/assets/atum/blockstates/deadwood_sign.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": "atum:block/deadwood_sign" | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/resources/assets/atum/blockstates/deadwood_wall_sign.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": "atum:block/deadwood_sign" | ||
} | ||
} | ||
} |
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": "atum:block/palm_sign" | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/resources/assets/atum/blockstates/palm_wall_sign.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": "atum:block/palm_sign" | ||
} | ||
} | ||
} |
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
5 changes: 5 additions & 0 deletions
5
src/main/resources/assets/atum/models/block/deadwood_sign.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,5 @@ | ||
{ | ||
"textures": { | ||
"particle": "atum:block/deadwood_planks" | ||
} | ||
} |
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,5 @@ | ||
{ | ||
"textures": { | ||
"particle": "atum:block/palm_planks" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/atum/models/item/deadwood_sign.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": "atum:item/deadwood_sign" | ||
} | ||
} |
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": "atum:item/palm_sign" | ||
} | ||
} |
Binary file added
BIN
+604 Bytes
src/main/resources/assets/minecraft/textures/entity/signs/atum_deadwood.png
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
+914 Bytes
src/main/resources/assets/minecraft/textures/entity/signs/atum_palm.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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:crafting_shaped", | ||
"group": "sign", | ||
"pattern": [ | ||
"###", | ||
"###", | ||
" X " | ||
], | ||
"key": { | ||
"#": { | ||
"item": "atum:deadwood_planks" | ||
}, | ||
"X": { | ||
"tag": "forge:rods/wooden" | ||
} | ||
}, | ||
"result": { | ||
"item": "atum:deadwood_sign", | ||
"count": 3 | ||
} | ||
} |
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:crafting_shaped", | ||
"group": "sign", | ||
"pattern": [ | ||
"###", | ||
"###", | ||
" X " | ||
], | ||
"key": { | ||
"#": { | ||
"item": "atum:palm_planks" | ||
}, | ||
"X": { | ||
"tag": "forge:rods/wooden" | ||
} | ||
}, | ||
"result": { | ||
"item": "atum:palm_sign", | ||
"count": 3 | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/resources/data/minecraft/tags/blocks/standing_signs.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 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"atum:palm_sign", | ||
"atum:deadwood_sign" | ||
] | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/resources/data/minecraft/tags/blocks/wall_signs.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 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"atum:palm_wall_sign", | ||
"atum:deadwood_wall_sign" | ||
] | ||
} |
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 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"atum:palm_sign", | ||
"atum:deadwood_sign" | ||
] | ||
} |