-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup + Excitation Coil Changes & Fixes
Fixed it being upside down YOU CAN NOW PLACE IT ON YOUR HEAD WITHOUT COMMANDS!
- Loading branch information
1 parent
7d0195b
commit 2307ded
Showing
7 changed files
with
97 additions
and
81 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
25 changes: 25 additions & 0 deletions
25
src/main/java/com/nomiceu/nomilabs/item/ItemExcitationCoil.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.nomiceu.nomilabs.item; | ||
|
||
import net.minecraft.block.Block; | ||
import net.minecraft.inventory.EntityEquipmentSlot; | ||
import net.minecraft.item.ItemBlock; | ||
import net.minecraft.item.ItemStack; | ||
import org.jetbrains.annotations.NotNull; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
import java.util.Objects; | ||
|
||
public class ItemExcitationCoil extends ItemBlock { | ||
public ItemExcitationCoil(Block block) { | ||
super(block); | ||
setRegistryName(Objects.requireNonNull(block.getRegistryName())); | ||
setCreativeTab(block.getCreativeTab()); | ||
setMaxStackSize(64); | ||
} | ||
|
||
@Nullable | ||
@Override | ||
public EntityEquipmentSlot getEquipmentSlot(@NotNull ItemStack stack) { | ||
return EntityEquipmentSlot.HEAD; | ||
} | ||
} |
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
39 changes: 1 addition & 38 deletions
39
src/main/resources/assets/contenttweaker/models/item/excitationcoil.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,40 +1,3 @@ | ||
{ | ||
"parent": "contenttweaker:block/excitationcoil", | ||
"display": { | ||
"gui": { | ||
"rotation": [ 30, 225, 0 ], | ||
"translation": [ 0, 3, 0], | ||
"scale":[ 1.0, 1.0, 1.0 ] | ||
}, | ||
"ground": { | ||
"rotation": [ 0, 0, 0 ], | ||
"translation": [ 0, 3, 0], | ||
"scale":[ 0.50, 0.50, 0.50 ] | ||
}, | ||
"fixed": { | ||
"rotation": [ 0, 0, 0 ], | ||
"translation": [ 0, 1.5, 0], | ||
"scale":[ 1.0, 1.0, 1.0 ] | ||
}, | ||
"thirdperson_righthand": { | ||
"rotation": [ 75, 45, 0 ], | ||
"translation": [ 0, 3, 0], | ||
"scale": [ 0.50, 0.50, 0.50 ] | ||
}, | ||
"firstperson_righthand": { | ||
"rotation": [ 0, 45, 0 ], | ||
"translation": [ 0, 1.5, 0 ], | ||
"scale": [ 0.80, 0.80, 0.80 ] | ||
}, | ||
"firstperson_lefthand": { | ||
"rotation": [ 0, 225, 0 ], | ||
"translation": [ 0, 1.5, 0 ], | ||
"scale": [ 0.80, 0.80, 0.80 ] | ||
}, | ||
"head": { | ||
"rotation": [ 0, 0, 0 ], | ||
"translation": [ 0, 20, 0], | ||
"scale":[ 1.5, 1.5, 1.5 ] | ||
} | ||
} | ||
"parent": "contenttweaker:block/excitationcoil" | ||
} |