This file contains hidden or 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
package org.multicoder.mcpaintball.capability; | |
import net.minecraft.core.Direction; | |
import net.minecraft.nbt.CompoundTag; | |
import net.minecraftforge.common.capabilities.Capability; | |
import net.minecraftforge.common.capabilities.CapabilityManager; | |
import net.minecraftforge.common.capabilities.CapabilityToken; | |
import net.minecraftforge.common.capabilities.ICapabilityProvider; | |
import net.minecraftforge.common.util.INBTSerializable; | |
import net.minecraftforge.common.util.LazyOptional; |
This file contains hidden or 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
"": { | |
Brain: { | |
memories: {} | |
} | |
HurtByTimestamp: 0 | |
SleepTimer: 0S | |
Attributes: [ | |
{ | |
Base: 0.0 | |
Name: "forge:step_height_addition" |
This file contains hidden or 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
---- Minecraft Crash Report ---- | |
// This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~] | |
Time: 2023-02-16 10:13:25 | |
Description: Mod loading error has occurred | |
java.lang.Exception: Mod Loading has failed | |
at net.minecraftforge.logging.CrashReportExtender.dumpModLoadingCrashReport(CrashReportExtender.java:55) ~[forge-1.19.3-44.1.16-universal.jar%23108!/:?] {re:classloading} | |
at net.minecraftforge.server.loading.ServerModLoader.load(ServerModLoader.java:39) ~[forge-1.19.3-44.1.16-universal.jar%23108!/:?] {re:classloading} | |
at net.minecraft.server.Main.main(Main.java:114) ~[server-1.19.3-20221207.122022-srg.jar%23103!/:?] {re:classloading} |
This file contains hidden or 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
package org.multicoder.mcpaintball.client; | |
public class ClientPlayerTeamData | |
{ | |
private static int Points; | |
private static int Team; | |
public static void SetPoints(int P) | |
{ | |
ClientPlayerTeamData.Points = P; |
This file contains hidden or 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
package org.multicoder.mcpaintball.item.weapons.bazooka; | |
import net.minecraft.server.level.ServerPlayer; | |
import net.minecraft.world.InteractionHand; | |
import net.minecraft.world.InteractionResultHolder; | |
import net.minecraft.world.entity.player.Player; | |
import net.minecraft.world.entity.projectile.AbstractArrow; | |
import net.minecraft.world.item.Item; | |
import net.minecraft.world.item.ItemStack; | |
import net.minecraft.world.level.Level; |
This file contains hidden or 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
package org.multicoder.mcpaintball.entity.renderer; | |
import net.minecraft.client.renderer.entity.EntityRenderer; | |
import net.minecraft.client.renderer.entity.EntityRendererProvider; | |
import net.minecraft.resources.ResourceLocation; | |
import org.multicoder.mcpaintball.entity.RedGrenade; | |
public class RedGrenadeRenderer extends EntityRenderer<RedGrenade> | |
{ | |
public static final ResourceLocation TEXTURE = new ResourceLocation("mcpaintball:textures/item/utility/grenades/red.png"); |
This file contains hidden or 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
@SubscribeEvent | |
public static void onEntityHurt(LivingHurtEvent event){ | |
Entity E = event.getEntity(); | |
if(E instanceof Cow && event.getSource().isProjectile()) | |
{ | |
event.setCanceled(true); | |
} | |
} |
This file contains hidden or 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
package org.multicoder.mcpaintball; | |
import net.minecraft.world.entity.EntityType; | |
import net.minecraftforge.client.event.EntityRenderersEvent; | |
import net.minecraftforge.event.CreativeModeTabEvent; | |
import net.minecraftforge.eventbus.api.IEventBus; | |
import net.minecraftforge.fml.ModLoadingContext; | |
import net.minecraftforge.fml.common.Mod; | |
import net.minecraftforge.fml.config.ModConfig; |
This file contains hidden or 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
@SubscribeEvent | |
public static void onPlayerCloned(PlayerEvent.Clone event) | |
{ | |
MCPaintball.LOG.info("Player Clone"); | |
if(event.isWasDeath()) | |
{ | |
MCPaintball.LOG.info("Is Death"); | |
MCPaintball.LOG.info(event.getOriginal().getCapability(PlayerTeamCapabilityProvider.CAPABILITY).isPresent()); | |
event.getOriginal().getCapability(PlayerTeamCapabilityProvider.CAPABILITY).ifPresent(oldStore -> | |
{ |
This file contains hidden or 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
package org.multicoder.mcpaintball.capability; | |
import net.minecraft.nbt.CompoundTag; | |
public class PlayerTeamCapability | |
{ | |
private int Team; | |
private int Points; | |
public int GetTeam(){ |
OlderNewer