Jump to content

[1.19.2] reequip animation | pickaxe not pickaxe | ghos of a block | its is doing this on propourse dont it


perromercenary00

Recommended Posts

 

Im trying to realese code a been working for like 8 months but having weird small problems
and to add salt to the wound mi hard disk fails this morning and cost me to recover mi work 


lest talk about this one first 

BOWMOD-ECLIPSE-edit.gif

in eclipse the code just works nice and all soo lets build the debt to test it on minecraft and make some videos to show the mod on curse 



BOWMOD-MINECRAFT-edit.gif

now all the bows gets displaced upside  in a weird angle 


[explaining whit patience] 

the mod works perfectly fine in eclipse ide,  but afther build it on and paste into minecraft folder this exactly piece of code stops working 

	#########################################################################3
    @Override
    public boolean shouldCauseReequipAnimation(ItemStack oldStack, ItemStack newStack, boolean slotChanged) {
        //return ( oldStack.getItem() == newStack.getItem()  )? true : false; 
        return ( newStack.getItem() instanceof bow00 )? true : false;
    }
	

i use this piece of code to avoid the bows to going down and up everitime i write change nbt data in the bow 
is an old history 

but in minecraft game it dont works  and  i dont know why this method is added by the IForgeItem class so i implement it again in mi bow class "even knowing is alredy implemented by the item super class" 

	public class bow00 extends BowItem implements IForgeItem {
	

Spoiler

				
			
		package mercbow.item.arco;				
			import mercbow.entity.EntityInit;
		import mercbow.entity.mercenaryarrow_entity;
		import mercbow.item.ItemInit;
		import mercbow.util.Target;
		import mercbow.util.util;				
			import net.minecraft.core.BlockPos;
		import net.minecraft.core.particles.ParticleTypes;
		import net.minecraft.network.chat.Component;
		import net.minecraft.sounds.SoundEvents;
		import net.minecraft.sounds.SoundSource;
		import net.minecraft.world.InteractionHand;
		import net.minecraft.world.InteractionResultHolder;
		import net.minecraft.world.entity.LivingEntity;
		import net.minecraft.world.entity.player.Player;
		import net.minecraft.world.item.BowItem;
		import net.minecraft.world.item.Item;
		import net.minecraft.world.item.ItemStack;
		import net.minecraft.world.item.UseAnim;
		import net.minecraft.world.item.enchantment.EnchantmentHelper;
		import net.minecraft.world.item.enchantment.Enchantments;
		import net.minecraft.world.level.Level;
		import net.minecraft.world.phys.Vec3;
		import net.minecraftforge.common.extensions.IForgeItem;				
			public class bow00 extends BowItem implements IForgeItem {
		       public static final int MAX_DRAW_DURATION = 15;
		       public static final int DEFAULT_RANGE = 20;				
			    // ########## ########## ########## ##########
		    public bow00(Properties propiedad) {
		        super(propiedad);
		        // TODO Auto-generated constructor stub
		    }				
			    // ########## ########## ########## ##########
		    @Override
		    public InteractionResultHolder<ItemStack> use(Level warudo, Player pe, InteractionHand hand) {				
			        // //System.out.println("use();");				
			        Target target = new Target(warudo, pe, 10);
		        Vec3 vh = target.getVh();// util.calcularVectores(pe, 10 , 0.0F );//				
			        // if (vh != null)
		        ItemStack arrows = getProjectile(pe);				
			        if (!arrows.isEmpty()) {
		            pe.startUsingItem(hand);
		        }
		        
		        if(vh != null && warudo.isClientSide) {
		        //warudo.addParticle(ParticleInit.SKULL_PARTICLE.get() , vh.x, vh.y+0.5D, vh.z, 0.0D, 0.0D, 0.0D);//ParticleInit.SKULL_PARTICLE.get() ParticleTypes.HEART
		        //warudo.addAlwaysVisibleParticle(ParticleTypes.FLAME, vh.x, vh.y, vh.z, 0.0D, 0.0D, 0.0D);
		        //velocidad dx,dy,dz
		        }				
			        // return InteractionResultHolder.consume(itemstack);				
			        // shootthis(warudo, pe);				
			        return InteractionResultHolder.pass(pe.getItemInHand(hand));
		    }				
			    // ########## ########## ########## ##########
		    public static void shootthis(Level warudo, LivingEntity pe, ItemStack itemstack, float power) { // ,float power				
			        if (!warudo.isClientSide()) {
		            mercenaryarrow_entity arrow = new mercenaryarrow_entity(EntityInit.MERCENARY_ARROW.get(), pe, warudo);
		            // arrow.setDeltaMovement(0, 1, 0); // directly up				
			            float f = 5.0F;				
			            arrow.shootFromRotation(pe, pe.getXRot(), pe.getYRot(), 1.0F, f * power, 1F);
		            if (f == 1.0F) {
		                // arrow.setCritArrow(true);
		            }				
			            int j = EnchantmentHelper.getItemEnchantmentLevel(Enchantments.POWER_ARROWS, itemstack);
		            if (j > 0) {
		                arrow.setBaseDamage(arrow.getBaseDamage() + (double) j * 0.5D + 0.5D);
		            }				
			            int k = EnchantmentHelper.getItemEnchantmentLevel(Enchantments.PUNCH_ARROWS, itemstack);
		            if (k > 0) {
		                arrow.setKnockback(k);
		            }				
			            if (EnchantmentHelper.getItemEnchantmentLevel(Enchantments.FLAMING_ARROWS, itemstack) > 0) {
		                arrow.setSecondsOnFire(100);
		            }				
			            warudo.addFreshEntity(arrow);
		            
		            
		            //icon_entity p_entity = new icon_entity(EntityInit.ICON_ENTITY.get(), warudo, arrow);
		            //warudo.addFreshEntity(p_entity);            
		            
		            
		        }
		    }				
			    // #########################################################################3
		    public static Vec3 calcularXY(Vec3 vi, float distancia, float angle) {
		        // rotacion Horizontal en grados
		        float gyaw = angle;// player.getViewYRot(0.0F);
		        float factor = (90F);				
			        gyaw = (float) ((gyaw - (factor / 2)));
		        gyaw = util.fixGrad(gyaw);				
			        // rotacion Horizontal en radianes
		        double ryaw = util.gradosAradianes(gyaw);				
			        double rpitch = -0.7853981852531433D;
		        // //System.out.println("rpitch=" + rpitch);				
			        // correcccion de -90 grados
		        double tmpryaw = ryaw - 1.5707964D;				
			        Vec3 vo = new Vec3(vi.x - ((Math.cos(tmpryaw)) * (Math.cos(rpitch) * distancia)), vi.y,
		                vi.z - ((Math.sin(tmpryaw)) * (Math.cos(rpitch) * distancia)));				
			        return vo;
		    }				
			    // ##########
		    public double doublex2(double f) {
		        int i = (int) (f * 100);
		        return ((double) i / 100.0D);
		    }				
			    // ##########
		    public BlockPos blockpos_from_vec3(Vec3 in) {
		        return new BlockPos((int) in.x, (int) in.y, (int) in.z);
		    }				
			    // ##########
		    public static Vec3 vec3_from_blockpos(BlockPos in) {
		        return new Vec3(in.getX() + 0.5, in.getY() + 0.5, in.getZ() + 0.5);
		    }				
			    // ##########
		    public static void particle(Level warudo, BlockPos vh) {
		        particle(warudo, vec3_from_blockpos(vh.above()));
		    }				
			    // ##########
		    public static void particle(Level warudo, Vec3 vh) {
		        //System.out.println("particle(" + vh);				
			        // util.showthis( String.format(" %1$s, %2$s, %3$s", vh.x, vh.y, vh.z ) , pe);
		        warudo.addAlwaysVisibleParticle(ParticleTypes.FLAME, vh.x, vh.y, vh.z, 0.0D, 0.0D, 0.0D);
		        warudo.addParticle(ParticleTypes.SMOKE, vh.x, vh.y, vh.z, 0.0D, 0.0D, 0.0D);				
			        // pe.playSound(SoundEvents.FIRE_EXTINGUISH, 1.0F, 1.0F);
		    }				
			    // ##########
		    // ########## ########## ########## ##########
		    public static void showthis(String mensaje, LivingEntity le) {				
			        if (le instanceof Player) {
		            Player pe = (Player) le;
		            //System.out.println(mensaje);
		            pe.displayClientMessage(Component.translatable(mensaje), true);				
			        }
		    }				
			    // ########## ########## ########## ##########
		    public int getUseDuration(ItemStack p_40680_) {
		        return 72000;
		    }				
			    public UseAnim getUseAnimation(ItemStack p_40678_) {
		        return UseAnim.BOW;
		    }				
			    // ########## ########## ########## ##########				
			    public void releaseUsing(ItemStack itemstack, Level warudo, LivingEntity pe, int time) {				
			        float ticks = (itemstack.getUseDuration() - pe.getUseItemRemainingTicks());
		        ticks = (ticks > 15.0F) ? 15.0F : ticks;				
			        float power = ticks / 15F;
		        ItemStack arrows = new ItemStack(ItemInit.ARROW_STEEL.get());				
			        // //System.out.println("releaseUsing(" + time + "), " + ticks);				
			        if (ticks > 9.9F) {				
			            if (pe instanceof Player) {
		                arrows = getProjectile((Player) pe);
		            }				
			            if (!arrows.isEmpty()) {
		                
		                SoundSource soundsource = pe instanceof Player ? SoundSource.PLAYERS : SoundSource.HOSTILE;
		                warudo.playSound((Player)null, pe.getX(), pe.getY(), pe.getZ(), SoundEvents.ARROW_SHOOT, soundsource, 1.0F, 1.0F );
		                
		                shootthis(warudo, pe, itemstack, power);
		                arrows.shrink(1);
		            }
		        }				
			    
		    }				
			    public static float getPowerForTime(int p_40662_) {
		        float f = (float) p_40662_ / 20.0F;
		        f = (f * f + f * 2.0F) / 3.0F;
		        if (f > 1.0F) {
		            f = 1.0F;
		        }				
			        return f;
		    }				
			    // ########## ########## ########## ##########
		    public ItemStack getProjectile(Player pe) {// , ItemStack projectile				
			        Item projectile_item = ItemInit.ARROW_STEEL.get();
		        Item slotitem = ItemStack.EMPTY.getItem();
		        int count = 0;
		        ItemStack finded = ItemStack.EMPTY;				
			        for (int i = 0; i < pe.getInventory().getContainerSize(); ++i) {
		            slotitem = pe.getInventory().getItem(i).getItem();				
			            if (slotitem == projectile_item) {
		                finded = pe.getInventory().getItem(i);
		                count += finded.getCount();
		            }
		        }				
			        // //System.out.println("Se encontraron " + count + " flechas" );
		        return finded;
		    }				
			    
		    // #########################################################################3
		    @Override
		    public boolean shouldCauseReequipAnimation(ItemStack oldStack, ItemStack newStack, boolean slotChanged) {
		        //return ( oldStack.getItem() == newStack.getItem()  )? true : false; 
		        return ( newStack.getItem() instanceof bow00 )? true : false;
		    }
		    
		    // ########## ########## ########## ##########				
			    // ########## ########## ########## ##########
		    // ########## ########## ########## ##########				
			    // ########## ########## ########## ##########
		    // ########## ########## ########## ##########				
			}				
			

[/explaining whit patience]

again the method shouldCauseReequipAnimation() works perfect inside the eclipse ide      but not in the minecraft game runing forge 

###################################################################################################

the next thing 

pickaxe.gif

 

this is just a custome iron pickaxe whit double the duration 
it works just fine in eclipse but afther build and put inside minecraft if stop being a pickaxe it takes too mutch to break the block and the block dont drops 
weir it is coze the rest of tools works fine ,
steel_shovel steel_axe steel_hoe  works as intended inside minecraft 

this its not custome code its just extending the vainilla PickaxeItem

    public static final RegistryObject<Item> PICKAXE_STEEL = ITEMS.register("pickaxe_steel", () -> new PickaxeItem(MTiers.IRON, 1, -2.8F, (new Item.Properties().tab(tab.instance) )));

 

theres a third thing but probably the same reason 

##############################

at this point i dont know what to ask for 
why this things works in eclipse but no in the minecraft game 
is a kind of forge bug or its some how a modder error ?

 

 












 

Link to comment
Share on other sites

Sorry, but you've been told many times that snippets are not enough to debug anything but the most trivial problems.

We shouldn't have to keep repeating ourselves.

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

Quote

    public boolean shouldCauseReequipAnimation(ItemStack oldStack, ItemStack newStack, boolean slotChanged) {       

 //return ( oldStack.getItem() == newStack.getItem()  )? true : false;        

 return ( newStack.getItem() instanceof bow00 )? true : false;     

}

This code says to always play the animation if the new item is your item?

 

Edited by warjort

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

 

yaa i notice that
but if i invert it , it moves the bow model up causing the same problem as it happend in the minecraft game

boowerror-edit.gif

 

 

###################################################################

AAAiiiiiiiiiiiiiiiiiiiiiiiiiiiaaiiiiiiiiiiiiiiiia

yap 
is the optifine mod 
i delete the all the .minecraft folder and download again all the game again an put only mi bow mod, its working as intended so i begin to add the others mods one by one to see what happends and afther  OptiFine_1.19.2_HD_U_H9.jar it fails again 
soo its optifine must be some option messing up whit the shouldCauseReequipAnimation thing 

anyway the pickaxe keeps failing
i change the warhammer to be also an pickaxe and fail as well  

    public static final RegistryObject<Item> PICKAXE_STEEL = ITEMS.register("pickaxe_steel", () -> new PickaxeItem(MTiers.STEEL_SMALL, 1, -2.8F, (new Item.Properties().tab(tab.instance) )));
    
    public static final RegistryObject<Item> WARHAMMER_STEEL = ITEMS.register("warhammer_steel", () -> new PickaxeItem(MTiers.STEEL, 1, -2.8F, (new Item.Properties().tab(tab.instance) )));
 

 

Link to comment
Share on other sites

Try the latest preview release of optifine. That version is old.

 

For the rest, I will repeat, for the last time. Small pieces of code are NOT enough.

And youtube videos are useless. I can't read the code or debug a video.

 

e.g.  What does this do? MTiers.STEEL_SMALL

Inside that is the mining level which determines what can be mined, or more accurately what will drop items when mined.

And since it is a custom tier it needs to be registered properly.

But that is just a guess. I have no desire to spend 20 posts playing a guessing game to try to get enough information from you to locate the real problem. 

Either show all the code, or learn how to attach a debugger to a minecraft production instance and debug obfuscated code. 🙂 

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

hellow 

  MTiers.STEEL_SMALL is just the custome tier material i create for steel i also check that change the material tier from mi items to iron just to test and is still failing 

 

Spoiler

				
			package merctool.item;				
			import java.util.function.Supplier;				
			import net.minecraft.tags.BlockTags;
		import net.minecraft.tags.ItemTags;
		import net.minecraft.util.LazyLoadedValue;
		import net.minecraft.world.item.Items;
		import net.minecraft.world.item.Tier;
		import net.minecraft.world.item.Tiers;
		import net.minecraft.world.item.crafting.Ingredient;
		import net.minecraftforge.common.Tags;				
			public enum MTiers implements Tier {
		   WOOD(0, 59, 2.0F, 0.0F, 15, () -> {
		      return Ingredient.of(ItemTags.PLANKS);
		   }),
		   STONE(1, 131, 4.0F, 1.0F, 5, () -> {
		      return Ingredient.of(ItemTags.STONE_TOOL_MATERIALS);
		   }),
		   IRON(2, 250, 6.0F, 2.0F, 14, () -> {
		      return Ingredient.of(Items.IRON_INGOT);
		   }),
		   STEEL(2, 750, 6.5F, 2.0F, 14, () -> {
		          return Ingredient.of(ItemInit.INGOT_STEEL.get());
		   }),
		   STEEL_SMALL(2, 750, 12.0F, 1.0F, 14, () -> {
		          return Ingredient.of(ItemInit.INGOT_STEEL.get());
		   }),   
		   STEEL_BIG(2, 750, 12.0F, 4.0F, 14, () -> {
		          return Ingredient.of(ItemInit.INGOT_STEEL.get());
		   }),      
		   
		   DIAMOND(3, 1561, 8.0F, 3.0F, 10, () -> {
		      return Ingredient.of(Items.DIAMOND);
		   }),
		   GOLD(0, 32, 12.0F, 0.0F, 22, () -> {
		      return Ingredient.of(Items.GOLD_INGOT);
		   }),
		   NETHERITE(4, 2031, 9.0F, 4.0F, 15, () -> {
		      return Ingredient.of(Items.NETHERITE_INGOT);
		   });				
			   private final int level;
		   private final int uses;
		   private final float speed;
		   private final float damage;
		   private final int enchantmentValue;
		   private final LazyLoadedValue<Ingredient> repairIngredient;				
			   private MTiers(int p_43332_, int p_43333_, float p_43334_, float p_43335_, int p_43336_, Supplier<Ingredient> p_43337_) {
		      this.level = p_43332_;
		      this.uses = p_43333_;
		      this.speed = p_43334_;
		      this.damage = p_43335_;
		      this.enchantmentValue = p_43336_;
		      this.repairIngredient = new LazyLoadedValue<>(p_43337_);
		   }				
			   public int getUses() {
		      return this.uses;
		   }				
			   public float getSpeed() {
		      return this.speed;
		   }				
			   public float getAttackDamageBonus() {
		      return this.damage;
		   }				
			   public int getLevel() {
		      return this.level;
		   }				
			   public int getEnchantmentValue() {
		      return this.enchantmentValue;
		   }				
			   public Ingredient getRepairIngredient() {
		      return this.repairIngredient.get();
		   }				
			   @org.jetbrains.annotations.Nullable public net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> getTag(MTiers tier) 
		   { 
		       return switch(tier)
		               {
		                   case WOOD -> Tags.Blocks.NEEDS_WOOD_TOOL;
		                   case GOLD -> Tags.Blocks.NEEDS_GOLD_TOOL;
		                   case STONE -> BlockTags.NEEDS_STONE_TOOL;
		                   case IRON -> BlockTags.NEEDS_IRON_TOOL;
		                   case STEEL -> BlockTags.NEEDS_IRON_TOOL;
		                   case STEEL_SMALL -> BlockTags.NEEDS_IRON_TOOL;
		                   case STEEL_BIG -> BlockTags.NEEDS_IRON_TOOL;
		                   case DIAMOND -> BlockTags.NEEDS_DIAMOND_TOOL;
		                   case NETHERITE -> Tags.Blocks.NEEDS_NETHERITE_TOOL;
		               };
		       //return net.minecraftforge.common.ForgeHooks.getTagFromVanillaTier(Tiers); 
		   }
		}				
			

 

so i change 

public static final RegistryObject<Item> PICKAXE_STEEL = ITEMS.register("pickaxe_steel", () -> new PickaxeItem(MTiers.STEEL_SMALL, 1, -2.8F, (new Item.Properties().tab(tab.instance) )));

to 

public static final RegistryObject<Item> PICKAXE_STEEL = ITEMS.register("pickaxe_steel", () -> new PickaxeItem(Tiers.IRON, 1, -2.8F, (new Item.Properties().tab(tab.instance) )));


but no avail is the same problem  it works in eclipse but not in minecraft  
i have a bunch of mods in mi minecraft game and i realize it fails only when mi other mod mercenary_blocks_1.19.2-006.jar is in the folder 

curously the vainilla pickaxes also fail to break blocks 


long story short i have somehow messed up the tags in src/main/resources/data/minecraft/tags/blocks/mineable/pickaxe.json 

Spoiler

				
			{
		    "replace": false,
		    "values": [
		        "mercblk:steel_ladder",
		        "mercblk:steel_fence_panel",
		        "mercblk:steel_fence_puerta",
		        "mercblk:steel_fence_trampilla",
		        "mercblk:cooper_guide_block",
		        "mercblk:cooper_guide_panel",
		        "mercblk:cooper_guide_puerta",
		        "mercblk:cooper_guide_trampilla",
		        "mercblk:blackstone_panel",
		        "mercblk:blackstone_puerta",
		        "mercblk:blackstone_trampilla",
		        "mercblk:cobblestone_panel",
		        "mercblk:cobblestone_puerta",
		        "mercblk:cobblestone_trampilla",
		        "mercblk:deepslate_panel",
		        "mercblk:deepslate_puerta",
		        "mercblk:deepslate_trampilla",
		        "mercblk:stone_panel",
		        "mercblk:stone_puerta",
		        "mercblk:stone_trampilla",
		        "mercblk:sandstone_panel",
		        "mercblk:sandstone_puerta",
		        "mercblk:sandstone_trampilla",
		        "mercblk:red_sandstone_panel",
		        "mercblk:red_sandstone_puerta",
		        "mercblk:red_sandstone_trampilla",
		        "mercblk:diorite_panel",
		        "mercblk:diorite_puerta",
		        "mercblk:diorite_trampilla",
		        "mercblk:andesite_panel",
		        "mercblk:andesite_puerta",
		        "mercblk:andesite_trampilla",
		        "mercblk:polished_andesite_panel",
		        "mercblk:polished_andesite_puerta",
		        "mercblk:polished_andesite_trampilla",
		        "mercblk:granite_panel",
		        "mercblk:granite_puerta",
		        "mercblk:granite_trampilla",
		        "mercblk:polished_granite_panel",
		        "mercblk:polished_granite_puerta",
		        "mercblk:polished_granite_trampilla",
		        "mercblk:prismarine_panel",
		        "mercblk:prismarine_puerta",
		        "mercblk:prismarine_trampilla",
		        "mercblk:mud_brick_panel",
		        "mercblk:mud_brick_puerta",
		        "mercblk:mud_brick_trampilla",
		        "mercblk:brick_panel",
		        "mercblk:brick_puerta",
		        "mercblk:brick_trampilla",
		        "mercblk:red_nether_brick_panel",
		        "mercblk:red_nether_brick_puerta",
		        "mercblk:red_nether_brick_trampilla",
		        "mercblk:deepslate_brick_panel",
		        "mercblk:deepslate_brick_puerta",
		        "mercblk:deepslate_brick_trampilla",
		        "mercblk:nether_brick_panel",
		        "mercblk:nether_brick_puerta",
		        "mercblk:nether_brick_trampilla",
		        "mercblk:polished_blackstone_brick_panel",
		        "mercblk:polished_blackstone_brick_puerta",
		        "mercblk:polished_blackstone_brick_trampilla",
		        "mercblk:end_stone_brick_panel",
		        "mercblk:end_stone_brick_puerta",
		        "mercblk:end_stone_brick_trampilla",
		        "mercblk:prismarine_brick_panel",
		        "mercblk:prismarine_brick_puerta",
		        "mercblk:prismarine_brick_trampilla",
		        "mercblk:stone_brick_panel",
		        "mercblk:stone_brick_puerta",
		        "mercblk:stone_brick_trampilla",
		        "mercblk:white_terracotta_panel",
		        "mercblk:white_terracotta_puerta",
		        "mercblk:white_terracotta_trampilla",
		        "mercblk:orange_terracotta_panel",
		        "mercblk:orange_terracotta_puerta",
		        "mercblk:orange_terracotta_trampilla",
		        "mercblk:magenta_terracotta_panel",
		        "mercblk:magenta_terracotta_puerta",
		        "mercblk:magenta_terracotta_trampilla",
		        "mercblk:light_blue_terracotta_panel",
		        "mercblk:light_blue_terracotta_puerta",
		        "mercblk:light_blue_terracotta_trampilla",
		        "mercblk:yellow_terracotta_panel",
		        "mercblk:yellow_terracotta_puerta",
		        "mercblk:yellow_terracotta_trampilla",
		        "mercblk:lime_terracotta_panel",
		        "mercblk:lime_terracotta_puerta",
		        "mercblk:lime_terracotta_trampilla",
		        "mercblk:pink_terracotta_panel",
		        "mercblk:pink_terracotta_puerta",
		        "mercblk:pink_terracotta_trampilla",
		        "mercblk:gray_terracotta_panel",
		        "mercblk:gray_terracotta_puerta",
		        "mercblk:gray_terracotta_trampilla",
		        "mercblk:light_gray_terracotta_panel",
		        "mercblk:light_gray_terracotta_puerta",
		        "mercblk:light_gray_terracotta_trampilla",
		        "mercblk:cyan_terracotta_panel",
		        "mercblk:cyan_terracotta_puerta",
		        "mercblk:cyan_terracotta_trampilla",
		        "mercblk:purple_terracotta_panel",
		        "mercblk:purple_terracotta_puerta",
		        "mercblk:purple_terracotta_trampilla",
		        "mercblk:blue_terracotta_panel",
		        "mercblk:blue_terracotta_puerta",
		        "mercblk:blue_terracotta_trampilla",
		        "mercblk:brown_terracotta_panel",
		        "mercblk:brown_terracotta_puerta",
		        "mercblk:brown_terracotta_trampilla",
		        "mercblk:green_terracotta_panel",
		        "mercblk:green_terracotta_puerta",
		        "mercblk:green_terracotta_trampilla",
		        "mercblk:red_terracotta_panel",
		        "mercblk:red_terracotta_puerta",
		        "mercblk:red_terracotta_trampilla",
		        "mercblk:black_terracotta_panel",
		        "mercblk:black_terracotta_puerta",
		        "mercblk:black_terracotta_trampilla"
		    ]
		}
		


i dont see any error nor eclipse marks red nothing but anyway something wrong 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Honestly i gave up on hiring a online hacker due to the bad experienced i always encounter with them but this time i was really in urgent need for a legit one cos i needed to be sure what my partners plan is as he is avoiding me and always hiding hen making calls couple with his late night movement. i was so scared so i got a helping hand from a friend Hyung who introduced me with this expert hacker, i was scared and lost trust in him at first but after giving him a try in couple of hours i got access to my partner phone and saw his call recordings, hidden text messages, social accounts , hidden photos and more. Thank you [ Hacker11tech @ gm ail . c om ] for been legit.
    • Hello I'm looking for help launching minecraft through curseforge. I've scoured the Internet and can't seem to find anyone with a solution to my specific situation/fix that I haven't tried. I'll post the Curseforge debug Logs below. But basically I'm on a Laptop (Lenovo Legion Slim 7 2021) And the people I've seen with the most similar scenario and found a fix they always had an AMD graphics card and were missing the correct drivers, Well i have the Nvidia geforce RTX 3060 Laptop version with all the most updated drivers, I've reinstalled the drivers so that doesn't seem to me the problem. Also, minecraft will launch in vanilla and through another modloader called modrinth. So it doesn't feel like a Java error either but I don't no how to read this debug page so I'm looking for advice. Please help?!  
    • Hello. Basically I made a custom standalone util library (https://github.com/lolhol/Pathfinder3D) and want to use it with my mod. Although I have done the normal jit pack stuff (basically the tutorial on their website) the Minecraft crashes the second it starts saying that it cannot find the name of a class inside of my library. (When I remove the implement(<my library link thingy>) mc launches normally and does not crash (if I comment out the code that uses the custom lib)). Now then, is there a quick fix for this because all of the other questions that I found on this topic were trying to load another mod (again, not what I’m trying to do). Am I doing something wrong? 
    • Fast Leaf Decay (by olafskiii) Rubidium (by Asek3) Artifacts (by ochotonida) Framework (by MrCrayfish) Max Health Fix (by DarkhaxDev) Embeddium/Rubidium Extras (by Txni) Essential Mod (by SparkUniverse_) Immersive Aircraft [Fabric/Forge] (by Conczin) Cherished Worlds (Fabric/Forge/NeoForge/Quilt) (by TheIllusiveC4) ExpandAbility (by florensie) Sophisticated Core (by P3pp3rF1y) Tinkers' Levelling Addon (by Pyre540) Better Advancements (by way2muchnoise) Immersive Melodies [Fabric/Forge] (by Conczin) Citadel (by sbom_xela) Vampirism - Become a vampire! (by maxanier) FerriteCore ((Neo)Forge) (by malte0811) CoroUtil (by Corosus) Create Big Cannons (by rbasamoyai) Controlling (by Jaredlll08) Cloth Config API (Fabric/Forge/NeoForge) (by shedaniel) Mekanism (by bradyaidanc) BetterF3 (by cominixo) Supplementaries (by MehVahdJukaar) Chest Cavity - Forge Port (by booneldanforever) ConnectedTexturesMod (by tterrag1098) NetherPortalFix (by BlayTheNinth) Spartan Weaponry (by ObliviousSpartan) Charm of Undying (Fabric/Forge/Quilt) (by TheIllusiveC4) Plushie Mod (by Link4real) JourneyMap (by techbrew) Farmer's Delight (by vectorwing) Connectivity[Forge/Fabric] (by someaddon) Create : Misc & Things (by To0pa) Create: Steam 'n' Rails (by IThundxr) Shutup Experimental Settings! (by Corgi_Taco) Alex's Mobs (by sbom_xela) Quark (by Vazkii) Tool Belt (by gigaherz) Just Enough Items (JEI) (by mezz) Bookshelf (by DarkhaxDev) FastWorkbench (by Shadows_of_Fire) Tinkers Construct (by mDiyo) Collective (by Serilum) Inventory HUD+ (by dmitrylovin) Explorer's Compass (by Chaosyr) playerAnimator (by KosmX) Size Devices (by DaFlame_rl) Jade 🔍 (by Snownee) Create Slice & Dice (by possible_triangle) Create Jetpack (by possible_triangle) Carry On (by Tschipp) Moonlight Lib (by MehVahdJukaar) Kotlin for Forge (by thedarkcolour) CraftTweaker (by Jaredlll08) Just Enough Resources (JER) (by way2muchnoise) AI Improvements (by QueenOfMissiles) Patchouli (by Vazkii) Catalogue (by MrCrayfish) Tool Stats (by DarkhaxDev) It Takes a Pillage (by izofar) JEITweaker (by Jaredlll08) Waystones (by BlayTheNinth) Vampires Need Umbrellas (by focamacho) Oculus (by Asek3) Mantle (by mDiyo) Mob Grinding Utils (by vadis365) Chiseled (by freepeopleworking) AutoRegLib (by Vazkii) Mystical Agriculture (by BlakeBr0) Embeddium/Rubidium Dynamic Lights (by Txni) Flywheel (Legacy) (by jozufozu) Builder's Delight (Forge) (by Tynoxs) Apotheosis (by Shadows_of_Fire) What Are They Up To (Watut) (by Corosus) Create: Interiors (by sudolev) FastFurnace (by Shadows_of_Fire) Balm (Forge Edition) (by BlayTheNinth) Clumps (by Jaredlll08) Iris & Oculus Flywheel Compat (by leon_mout) Configured (by MrCrayfish) Tinkers' Expansion (by Insane96) Crafting on a stick (by OfekN_) MrCrayfish's Gun Mod (by MrCrayfish) Create: Crystal Clear (by singularity_cyvack) FTB Library (Forge) (by FTB) AppleSkin (by squeek502) Curios API (Forge/NeoForge) (by TheIllusiveC4) Better Third Person (by Socolio) Caelus API (Forge/NeoForge) (by TheIllusiveC4) Sons Of Sins (by Furti_Two) SwingThroughGrass (by exidex) AttributeFix (by DarkhaxDev) Quests Additions (Forge) (by NaturaSpell) Building Gadgets (by Direwolf20) Enchantment Descriptions (by DarkhaxDev) Skin Layers 3D (Fabric/Forge) (by tr7zw) Bad Wither No Cookie - Reloaded (by Kreezxil) Placebo (by Shadows_of_Fire) FTB Teams (Forge) (by FTB) Mod Name Tooltip (by mezz) Enigmatic Graves (by Quarris) Sophisticated Backpacks (by P3pp3rF1y) GeckoLib (by Gecko) Builders Crafts & Additions (by MRHminer) Immersive Portals (for Forge) (by qouteall) Architectury API (Fabric/Forge/NeoForge) (by shedaniel) Lazy DataFixerUpper(LazyDFU) [FORGE] (by Corgi_Taco) Create Ore Excavation (by tom54541) Tinkers' Rapier (by sz0999312) Mowzie's Mobs (by bobmowzie) Better Combat [Fabric & Forge] (by daedelus_dev) Create Stuff & Additions (by Furti_Two) Cucumber Library (by BlakeBr0) FPS Reducer (by bre2el) Item Filters (by LatvianModder) FTB Quests (Forge) (by FTB) L_Ender 's Cataclysm (by mcl_ender) Starter Kit (by Serilum) Feature NBT Deadlock Be Gone (by telepathicgrunt) Materialis (by RCXcrafter) KleeSlabs (by BlayTheNinth) Pehkui (by Virtuoel) Grappling Hook Mod (by yyonne) Security Craft (by Geforce132) Ars Nouveau (by baileyholl2) Mouse Tweaks (by YaLTeR) Werewolves - Become a Beast! (by Cheaterpaul) Elytra Slot (Fabric/Forge/Quilt) (by TheIllusiveC4) Create (by simibubi) Budschie's Morph Mod (by budschie_) Ore Excavation (by Funwayguy) Create Confectionery (by Furti_Two)
    • Hello, im kind of a newbie on creating mods, and i been trying to make simples mods so far, Right now, i'm creating a mod which detect an specific type of mob and kill it if reach a certain number, by far the mod is detecting the mob and counting them but at the time it reach the limit number, it don't do anything. The Game don't tweak, don't crash, just i't don't run the method i call, which is kill().   public InteractionResultHolder<ItemStack> use(Level pLevel, Player pPlayer, InteractionHand pUsedHand) { final var TotalCows = pLevel.getNearbyEntities(Cow.class, TargetingConditions.forNonCombat(), pPlayer, pPlayer.getBoundingBox().inflate(5)); if(pLevel.isClientSide){ if(pPlayer.getItemInHand(InteractionHand.MAIN_HAND).getItem() == this.asItem()){ if(!TotalCows.isEmpty()){ if(TotalCows.get(0).isAlive()){ TotalCows.get(0).kill(); } }else{ pPlayer.sendSystemMessage(Component.literal("No hay vacas")); } } } The sendSystemMessage is get triggered, and when i change the method .kill() by any other like send a message it got called, can i get some tips, and a clue of what i'm missing
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.