This commit is contained in:
parent
4bc4821543
commit
998e514cd9
@ -1,4 +1,4 @@
|
|||||||
### Changelog
|
# Changelog
|
||||||
|
|
||||||
**1.1.11**
|
**1.1.11**
|
||||||
* Update Mappings
|
* Update Mappings
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# SorceryCraft
|
# SorceryCraft
|
||||||
Cast Spells in Minecraft!
|
Cast Spells in Minecraft!
|
||||||
|
|
||||||
This mod supports the Minecraft 1.16 snapshots.
|
This mod currently supports the Minecraft 1.16 snapshots.
|
||||||
|
|
||||||
## What are Spells?
|
## What are Spells?
|
||||||
Spells are found throughout the world in chests. When you pick up a Spell you will learn it, one you learn a Spell you can apply it to a blank or existing Spell in the Casting Table. You can cast Spells by right-clicking. There is also a 30% chance the spell will rebound and hit you instead, unless the "Steadfast" Spell is applied.
|
Spells are found throughout the world in chests. When you pick up a Spell you will learn it, one you learn a Spell you can apply it to a blank or existing Spell in the Casting Table. You can cast Spells by right-clicking. There is also a 30% chance the spell will rebound and hit you instead, unless the "Steadfast" Spell is applied.
|
||||||
|
@ -20,7 +20,7 @@ public class MixinClientPlayNetworkHandler {
|
|||||||
private ClientWorld world;
|
private ClientWorld world;
|
||||||
|
|
||||||
@Inject(method = "onEntitySpawn", at = @At(value = "TAIL"))
|
@Inject(method = "onEntitySpawn", at = @At(value = "TAIL"))
|
||||||
public void onEntitySpawn(EntitySpawnS2CPacket packet, CallbackInfo callbackInfo) {
|
public void onEntitySpawn(EntitySpawnS2CPacket packet, CallbackInfo info) {
|
||||||
EntityType<?> entityType = packet.getEntityTypeId();
|
EntityType<?> entityType = packet.getEntityTypeId();
|
||||||
Entity entity = null;
|
Entity entity = null;
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
|||||||
@Mixin(ServerPlayerEntity.class)
|
@Mixin(ServerPlayerEntity.class)
|
||||||
public abstract class MixinServerPlayerEntity implements SpellPlayerEntity {
|
public abstract class MixinServerPlayerEntity implements SpellPlayerEntity {
|
||||||
@Inject(at = @At("HEAD"), method = "copyFrom")
|
@Inject(at = @At("HEAD"), method = "copyFrom")
|
||||||
public void copyFrom(ServerPlayerEntity oldPlayer, boolean alive, CallbackInfo ci) {
|
public void copyFrom(ServerPlayerEntity oldPlayer, boolean alive, CallbackInfo info) {
|
||||||
SpellPlayerEntity oldSpellPlayer = (SpellPlayerEntity) oldPlayer;
|
SpellPlayerEntity oldSpellPlayer = (SpellPlayerEntity) oldPlayer;
|
||||||
SpellPlayerEntity newSpellPlayer = this;
|
SpellPlayerEntity newSpellPlayer = this;
|
||||||
|
|
||||||
@ -22,7 +22,7 @@ public abstract class MixinServerPlayerEntity implements SpellPlayerEntity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Inject(at = @At("HEAD"), method = "playerTick")
|
@Inject(at = @At("HEAD"), method = "playerTick")
|
||||||
public void playerTick(CallbackInfo ignored) {
|
public void playerTick(CallbackInfo info) {
|
||||||
CompoundTag tag = new CompoundTag();
|
CompoundTag tag = new CompoundTag();
|
||||||
tag.put(SpellTag.SPELL_TAG, SpellTag.createSpellsTag(getSorceryCraftSpells()));
|
tag.put(SpellTag.SPELL_TAG, SpellTag.createSpellsTag(getSorceryCraftSpells()));
|
||||||
//noinspection ConstantConditions
|
//noinspection ConstantConditions
|
||||||
|
Reference in New Issue
Block a user