Code Snippets DM

Short texts DM 🧑‍💻 Code snippets DM ✍️ Reading lists DM 👀

example.dm

#define EFFECTS #define EFFECT_REMOVE_REF 1 #define EFFECT_REMOVE_ANY 2 #define EFFECT_REMOVE_ALL 3 proc AddEffect(mob/m, var/effect/e) e.mob = m e.mob.effects.Add(e) RemoveEffect(mob/m, var/effect/e, var/remove_action = EFFECT_REMOVE_REF) switch(remove_action) if(EFFECT_REMOVE_REF) for(var/effects/effect in m.effects) if(effect == e) m.effects.Remove(e) break if(EFFECT_REMOVE_ANY) for(var/effects/effect in m.effects) if(effect.type == e.type) m.effects.Remove(e) break if(EFFECT_REMOVE_ALL) for(var/effects/effect in m.effects) if(effect.type == e.type) m.effects.Remove(e) CheckEffect(mob/m, var/effect/e) if(locate(e.type) in m.effects) […]

effects.dm

#define EFFECTS #define EFFECT_REMOVE_REF 1 #define EFFECT_REMOVE_ANY 2 #define EFFECT_REMOVE_ALL 3 proc AddEffect(mob/m, var/effect/e) e.mob = m e.mob.effects.Add(e) RemoveEffect(mob/m, var/effect/e, var/remove_action = EFFECT_REMOVE_REF) switch(remove_action) if(EFFECT_REMOVE_REF) for(var/effects/effect in m.effects) if(effect == e) m.effects.Remove(e) break if(EFFECT_REMOVE_ANY) for(var/effects/effect in m.effects) if(effect.type == e.type) m.effects.Remove(e) break if(EFFECT_REMOVE_ALL) for(var/effects/effect in m.effects) if(effect.type == e.type) m.effects.Remove(e) CheckEffect(mob/m, var/effect/e) if(locate(e.type) in m.effects) […]

Help

����4�5drzhark/mocreatures/entity/passive/MoCEntityPandaBear0drzhark/mocreatures/entity/passive/MoCEntityBear?(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V Signaturey(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)VCode  LineNumberTableLocalVariableTablethis7Ldrzhark/mocreatures/entity/passive/MoCEntityPandaBear;type!Lnet/minecraft/entity/EntityType;worldLnet/minecraft/world/World;LocalVariableTypeTable[Lnet/minecraft/entity/EntityType;getAddEntityPacket!()Lnet/minecraft/network/IPacket;$()Lnet/minecraft/network/IPacket; +net/minecraftforge/fml/network/NetworkHooks getEntitySpawningPacket>(Lnet/minecraft/entity/Entity;)Lnet/minecraft/network/IPacket; selectType()V ” #$ getSubType()I & '(setType(I)V *   StackMapTable getTexture'()Lnet/minecraft/util/ResourceLocation;/ bearpanda.png 132drzhark/mocreatures/MoCreatures ,49(Ljava/lang/String;)Lnet/minecraft/util/ResourceLocation; getBearSize()F?L�� getMaxEdadcalculateMaxHealthA� isReadyToHunt()ZgetAttackStrengthhurt%(Lnet/minecraft/util/DamageSource;F)Z A >? damagesource!Lnet/minecraft/util/DamageSource;iFshouldAttackPlayersisMyFavoriteFood!(Lnet/minecraft/item/ItemStack;)Z JLKnet/minecraft/item/ItemStack M

Help

����4^4drzhark/mocreatures/entity/passive/MoCEntityPanthger2drzhark/mocreatures/entity/passive/MoCEntityBigCat?(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V Signaturex(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)VCode  LineNumberTableLocalVariableTablethis6Ldrzhark/mocreatures/entity/passive/MoCEntityPanthger;type!Lnet/minecraft/entity/EntityType;worldLnet/minecraft/world/World;LocalVariableTypeTableZLnet/minecraft/entity/EntityType; selectType()V   getSubType()I  setType(I)V !  StackMapTable getTexture'()Lnet/minecraft/util/ResourceLocation;&bcpanthger.png (*)drzhark/mocreatures/MoCreatures #+9(Ljava/lang/String;)Lnet/minecraft/util/ResourceLocation;getOffspringClazz=(Ldrzhark/mocreatures/entity/IMoCTameable;)Ljava/lang/String;/ Panthgerdmate)Ldrzhark/mocreatures/entity/IMoCTameable;getOffspringTypeInt,(Ldrzhark/mocreatures/entity/IMoCTameable;)IcompatibleMate (Lnet/minecraft/entity/Entity;)ZLnet/minecraft/entity/Entity;calculateMaxHealth()FA�calculateAttackDmg()D@getAttackRange@$ getMaxEdadcanAttackTarget&(Lnet/minecraft/entity/LivingEntity;)Z E FG getIsAdult()Z I JgetEdad L A?陙���� PRQ!net/minecraft/entity/LivingEntity S8 getBbHeight?� PV W8 getBbWidthentity#Lnet/minecraft/entity/LivingEntity; getMoveSpeed?��� SourceFileMoCEntityPanthger.java!  [*+,� �    P*��*�*� �   ” #$ 0%�’�  ,- 7.� 6 0123 6� ; 0145 6� @ 0678 -9� E :; .; .?� O A -s� T BC �

Help

����4^4drzhark/mocreatures/entity/passive/MoCEntityPanthard2drzhark/mocreatures/entity/passive/MoCEntityBigCat?(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V Signaturex(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)VCode  LineNumberTableLocalVariableTablethis6Ldrzhark/mocreatures/entity/passive/MoCEntityPanthard;type!Lnet/minecraft/entity/EntityType;worldLnet/minecraft/world/World;LocalVariableTypeTableZLnet/minecraft/entity/EntityType; selectType()V   getSubType()I  setType(I)V !  StackMapTable getTexture'()Lnet/minecraft/util/ResourceLocation;&bcpanthard.png (*)drzhark/mocreatures/MoCreatures #+9(Ljava/lang/String;)Lnet/minecraft/util/ResourceLocation;getOffspringClazz=(Ldrzhark/mocreatures/entity/IMoCTameable;)Ljava/lang/String;/Panthardmate)Ldrzhark/mocreatures/entity/IMoCTameable;getOffspringTypeInt,(Ldrzhark/mocreatures/entity/IMoCTameable;)IcompatibleMate (Lnet/minecraft/entity/Entity;)ZLnet/minecraft/entity/Entity;calculateMaxHealth()FA�calculateAttackDmg()D@getAttackRange@  getMaxEdadcanAttackTarget&(Lnet/minecraft/entity/LivingEntity;)Z E FG getIsAdult()Z I JgetEdad L A?陙���� PRQ!net/minecraft/entity/LivingEntity S8 getBbHeight?� PV W8 getBbWidthentity#Lnet/minecraft/entity/LivingEntity; getMoveSpeed?��� SourceFileMoCEntityPanthard.java!  [*+,� �    P*��*�*� �   ” #$ 0%�’�  ,- 7.� 6 0123 6� ; 0145 6� @ 0678 -9� E :; .; .?� O A -d� T BC �