repo for my hex addons :3
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

remove snow

+6 -50
-1
project.org
··· 52 52 can be charmed; breaks if discharmed 53 53 *** TODO document undocumented patterns 54 54 - [X] demiplane patterns 55 - - [ ] conjure snow 56 55 - [ ] pseudothoth 57 56 ** Demiplanes 58 57 *** TODO special demiplane NG handling
-1
project/hexic/src/client/scala/org/eu/net/pool/hexic/client.scala
··· 355 355 "nbt/serialize" -> "Exporter's Purification", 356 356 "reveal" -> "Greater Reveal", 357 357 "rotate" -> "Ferris Distillation", 358 - "snow" -> "Summon Snow", 359 358 "staffcast_factory" -> "Lani's Greater Gambit", 360 359 "staffcast_factory/lazy" -> "Lani's Lesser Gambit", 361 360 "take" -> "Retention Distillation",
+1 -2
project/hexic/src/main/resources/assets/hexic/lang/zh_cn.json
··· 37 37 "hexcasting.action.hexic:nbt/serialize": "导出器之纯化", 38 38 "hexcasting.action.hexic:reveal": "卓越揭示", 39 39 "hexcasting.action.hexic:rotate": "摩天轮之馏化", 40 - "hexcasting.action.hexic:snow": "召雪", 41 40 "hexcasting.action.hexic:staffcast_factory": "Lani之卓越策略", 42 41 "hexcasting.action.hexic:staffcast_factory/lazy": "Lani之初等策略", 43 42 "hexcasting.action.hexic:take": "维持之馏化", ··· 173 172 "tag.item.hexic.mediaweaves": "媒质布匹", 174 173 "text.hexic.or_map": "%s或映射", 175 174 "text.hexic.pigment_holder_item": "存有染色剂的物品" 176 - } 175 + }
+1 -2
project/hexic/src/main/resources/data/hexcasting/tags/action/per_world_pattern.json
··· 1 1 { 2 2 "values": [ 3 - "hexic:snow", 4 3 "hexic:moveentity" 5 4 ] 6 - } 5 + }
+1 -2
project/hexic/src/main/resources/data/hexcasting/tags/action/requires_enlightenment.json
··· 1 1 { 2 2 "values": [ 3 - "hexic:snow", 4 3 "hexic:moveentity" 5 4 ] 6 - } 5 + }
-1
project/hexic/src/main/resources/hexic.mixins.json
··· 6 6 "mixins": [ 7 7 "AbstractFurnaceBlockEntityMixin", 8 8 "ActionRegistryEntryMixin", 9 - "BiomeMixin", 10 9 "CastingEnvironmentMixin", 11 10 "CastingVMMixin", 12 11 "DimIotaMixin",
+3 -22
project/hexic/src/main/scala/org/eu/net/pool/hexic/main.scala
··· 395 395 private[hexic] def register(using fac: EntityComponentFactoryRegistry) = 396 396 fac.registerForPlayers(key, PlayerInfoComponent(_), RespawnCopyStrategy.LOSSLESS_ONLY) 397 397 398 - class ServerInfoComponent( 399 - var endSnowTick: Long = 0 400 - ) extends Component, AutoSyncedComponent: 401 - override def readFromNbt(tag: NbtCompound): Unit = 402 - endSnowTick = tag.getLong("snow") 403 - override def writeToNbt(tag: NbtCompound): Unit = 404 - tag.putLong("snow", endSnowTick) 398 + class ServerInfoComponent() extends Component, AutoSyncedComponent: 399 + override def readFromNbt(tag: NbtCompound): Unit = () 400 + override def writeToNbt(tag: NbtCompound): Unit = () 405 401 object ServerInfoComponent: 406 402 given key: ComponentKey[ServerInfoComponent] = ComponentRegistry.getOrCreate("server_info", classOf[ServerInfoComponent]) 407 403 given get: (server: MinecraftServer) => ServerInfoComponent = server.getOverworld.getLevelProperties.getComponent(key) ··· 1569 1565 override def executeWithUserdata(list: util.List[? <: Iota], env: CastingEnvironment, data: NbtCompound): SpellAction.Result = SpellAction.DefaultImpls.executeWithUserdata(this, list, env, data) 1570 1566 override def hasCastingSound(env: CastingEnvironment): Boolean = true 1571 1567 override def operate(env: CastingEnvironment, castingImage: CastingImage, cont: SpellContinuation): OperationResult = SpellAction.DefaultImpls.operate(this, env, castingImage, cont) 1572 - Patterns.register("snow", nw"eewwweewdadadaddwwwaqwwq"): 1573 - Patterns.mkAction: (img, cont) => 1574 - (img, cont, HexEvalSounds.SPELL, Seq( 1575 - OperatorSideEffect.ConsumeMedia(12 * MediaConstants.DUST_UNIT), 1576 - OperatorSideEffect.AttemptSpell( 1577 - new RenderedSpell: 1578 - override def cast(env: CastingEnvironment): Unit = 1579 - given MinecraftServer = env.getWorld.getServer 1580 - val duration = env.getWorld.random.nextBetween(15, 30) * 20 * 60 1581 - env.getWorld.setWeather(0, duration, true, false) 1582 - ServerInfoComponent.get.endSnowTick = env.getWorld.getTime + duration 1583 - ServerInfoComponent.sync() 1584 - override def cast(env: CastingEnvironment, img: CastingImage): CastingImage = { cast(env); img } 1585 - , true, true) 1586 - )) 1587 1568 Patterns.register("staffcast_factory", ne"wwwwwaqqqqqeaqeaeaeaeaeq"): 1588 1569 Patterns.mkAction: (img, cont) => 1589 1570 summon[CastingEnvironment].getCastingEntity match
-19
project/hexic/src/main/scala/org/eu/net/pool/hexic/mixin/BiomeMixin.java
··· 1 - package org.eu.net.pool.hexic.mixin; 2 - 3 - import net.minecraft.world.World; 4 - import net.minecraft.world.biome.Biome; 5 - import org.eu.net.pool.hexic.Extern; 6 - import org.eu.net.pool.hexic.ServerInfoComponent; 7 - import org.spongepowered.asm.mixin.Mixin; 8 - import org.spongepowered.asm.mixin.injection.At; 9 - import org.spongepowered.asm.mixin.injection.Inject; 10 - import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; 11 - 12 - @Mixin(Biome.class) 13 - public class BiomeMixin { 14 - @Inject(at = @At("HEAD"), method = {"getTemperature()F", "getTemperature(Lnet/minecraft/util/math/BlockPos;)F"}, cancellable = true) 15 - void preGetTemperature(CallbackInfoReturnable<Float> ci) { 16 - World world = Extern.getWorld((Biome) (Object) this); 17 - if (world.getLevelProperties().getComponent(ServerInfoComponent.key()).endSnowTick() > world.getTime()) ci.setReturnValue(0.1f); 18 - } 19 - }