-
Notifications
You must be signed in to change notification settings - Fork 5
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
71ca625
commit a3ef463
Showing
16 changed files
with
157 additions
and
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package miyucomics.hexical.entities | ||
|
||
import net.minecraft.entity.Entity | ||
import net.minecraft.entity.EntityType | ||
import net.minecraft.entity.data.DataTracker | ||
import net.minecraft.entity.data.TrackedData | ||
import net.minecraft.entity.data.TrackedDataHandlerRegistry | ||
import net.minecraft.nbt.NbtCompound | ||
import net.minecraft.network.packet.s2c.play.EntitySpawnS2CPacket | ||
import net.minecraft.util.math.Direction | ||
import net.minecraft.world.World | ||
|
||
class SpikeEntity(entityType: EntityType<SpikeEntity?>?, world: World?) : Entity(entityType, world) { | ||
private var direction: Direction = Direction.UP | ||
companion object { | ||
} | ||
|
||
fun setDirection() { | ||
if (this.direction.axis.isHorizontal) { | ||
this.pitch = 0.0f | ||
this.yaw = (this.direction.horizontal * 90).toFloat() | ||
} else { | ||
this.pitch = (-90 * this.direction.direction.offset()).toFloat() | ||
this.yaw = 0.0f | ||
} | ||
} | ||
|
||
override fun initDataTracker() { | ||
} | ||
|
||
override fun readCustomDataFromNbt(nbt: NbtCompound) { | ||
} | ||
|
||
override fun writeCustomDataToNbt(nbt: NbtCompound) { | ||
} | ||
|
||
override fun createSpawnPacket() = EntitySpawnS2CPacket(this) | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/miyucomics/hexical/entities/SpikeRenderer.kt
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,15 @@ | ||
package miyucomics.hexical.entities | ||
|
||
import net.minecraft.client.render.* | ||
import net.minecraft.client.render.entity.EntityRenderer | ||
import net.minecraft.client.render.entity.EntityRendererFactory | ||
import net.minecraft.client.util.math.MatrixStack | ||
import net.minecraft.util.Identifier | ||
|
||
class SpikeRenderer(ctx: EntityRendererFactory.Context?) : EntityRenderer<SpikeEntity?>(ctx) { | ||
override fun getTexture(spike: SpikeEntity?) = Identifier("textures/block/amethyst_cluster.png") | ||
override fun render(spike: SpikeEntity?, yaw: Float, deltaTick: Float, matrices: MatrixStack, vertexConsumers: VertexConsumerProvider, light: Int) { | ||
matrices.push() | ||
matrices.pop() | ||
} | ||
} |
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
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/hexical/models/item/conjured_staff_mirror.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": "hexical:item/conjured_staff_mirror" | ||
} | ||
} |
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 modified
BIN
+3 Bytes
(100%)
src/main/resources/assets/hexical/textures/item/conjured_staff_key.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
+353 Bytes
src/main/resources/assets/hexical/textures/item/conjured_staff_mirror.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
33 changes: 33 additions & 0 deletions
33
src/main/resources/data/hexical/advancements/rose_tinted_glasses.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,33 @@ | ||
{ | ||
"parent": "hexcasting:root", | ||
"criteria": { | ||
"sip": { | ||
"trigger": "minecraft:item_used_on_block", | ||
"conditions": { | ||
"location": { | ||
"block": { | ||
"blocks": [ | ||
"hexical:media_jar" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"display": { | ||
"announce_to_chat": true, | ||
"title": { | ||
"translate": "advancements.hexical.media_slurp.title" | ||
}, | ||
"description": { | ||
"translate": "advancements.hexical.media_slurp.description" | ||
}, | ||
"frame": "task", | ||
"hidden": true, | ||
"icon": { | ||
"item": "hexical:media_jar" | ||
}, | ||
"show_toast": true | ||
}, | ||
"requirements": [["sip"]] | ||
} |
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.