Jump to content

Projectile disappears after throwing


DimDima09

Recommended Posts

1 minute ago, diesieben07 said:

Show your code.

Main class:
 

    private void setup(final FMLCommonSetupEvent event)
    {
        //EntityRenderers.register(Entities.TRAVERTINE_PROJECTILE.get(), ThrownItemRenderer::new);
        EntityRenderers.register(Entities.TRAVERTINE_PIECE_PROJECTILE.get(), ThrownItemRenderer::new);
    }

Item class:

package com.dimucathedev.shaftcraft.Items;

import com.dimucathedev.shaftcraft.Entities.TravertinePieceEntity;
import net.minecraft.network.chat.Component;
import net.minecraft.world.InteractionHand;
import net.minecraft.world.InteractionResultHolder;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.TooltipFlag;
import net.minecraft.world.level.Level;
import org.jetbrains.annotations.Nullable;

import java.util.List;

public class TravertinePieceProjectile extends Item {
    public TravertinePieceProjectile(Properties p_41383_) {
        super(p_41383_);
    }

    @Override
    public void appendHoverText(ItemStack p_41421_, @Nullable Level p_41422_, List<Component> p_41423_, TooltipFlag p_41424_) {
        p_41423_.add(Component.translatable("tooltip.travertine_throwable2"));
        p_41423_.add(Component.translatable("tooltip.travertine_throwable1"));
    }

    @Override
    public InteractionResultHolder<ItemStack> use(Level p_43142_, Player p_43143_, InteractionHand p_43144_) {
        ItemStack stack = p_43143_.getItemInHand(p_43144_);
        if (!p_43142_.isClientSide()) {
            TravertinePieceEntity e = new TravertinePieceEntity(p_43142_,p_43143_);
            e.setItem(stack);
            e.shootFromRotation(p_43143_, p_43143_.getXRot(), p_43143_.getYRot(),1.0F, 1.5F, 1.0F);
            p_43142_.addFreshEntity(e);
        }
        if (!p_43143_.getAbilities().instabuild) {
            stack.shrink(1);
        }
        return InteractionResultHolder.sidedSuccess(stack, p_43142_.isClientSide());
    }
}

Entity class:

package com.dimucathedev.shaftcraft.Entities;

import com.dimucathedev.shaftcraft.Registry.DieMessages;
import com.dimucathedev.shaftcraft.Registry.Entities;
import com.dimucathedev.shaftcraft.Registry.Items.Items;
import net.minecraft.core.BlockPos;
import net.minecraft.core.particles.ItemParticleOption;
import net.minecraft.core.particles.ParticleOptions;
import net.minecraft.core.particles.ParticleTypes;
import net.minecraft.network.protocol.Packet;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.item.ItemEntity;
import net.minecraft.world.entity.projectile.ThrowableItemProjectile;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.Level;
import net.minecraft.world.phys.EntityHitResult;
import net.minecraft.world.phys.HitResult;
import net.minecraftforge.network.NetworkHooks;

import java.util.Random;

public class TravertinePieceEntity extends ThrowableItemProjectile {

    public TravertinePieceEntity(EntityType<? extends TravertinePieceEntity> p_37391_, Level p_37392_) {
        super(p_37391_, p_37392_);
    }
    public TravertinePieceEntity(Level p_37399_, LivingEntity p_37400_) {
        super(Entities.TRAVERTINE_PIECE_PROJECTILE.get(), p_37400_, p_37399_);
    }
    public TravertinePieceEntity(Level p_37394_, double p_37395_, double p_37396_, double p_37397_) {
        super(Entities.TRAVERTINE_PIECE_PROJECTILE.get(), p_37395_, p_37396_, p_37397_, p_37394_);
    }
    @Override
    protected Item getDefaultItem() {
        return Items.TRAVERTINE_PIECE.get();
    }
    private ParticleOptions getParticle() {
        ItemStack itemstack = this.getItemRaw();
        return itemstack.isEmpty() ? new ItemParticleOption(ParticleTypes.ITEM, new ItemStack(Items.TRAVERTINE_BLOCK_ITEM.get())) : new ItemParticleOption(ParticleTypes.ITEM, itemstack);
    }    @Override
    public void handleEntityEvent(byte p_37402_) {
        if (p_37402_ == 3) {
            ParticleOptions particleoptions = this.getParticle();

            for(int i = 0; i < 8; ++i) {
                this.level.addParticle(particleoptions, this.getX(), this.getY(), this.getZ(), 0.0D, 0.0D, 0.0D);
            }
        }

    }
    public static int count(String str, String target) {
        return (str.length() - str.replace(target, "").length()) / target.length();
    }
    @Override
    protected void onHit(HitResult p_37260_) {
        handleEntityEvent((byte)3);
        Random r = new Random();
        if (p_37260_.getType() == HitResult.Type.ENTITY){
            Entity e = ((EntityHitResult)p_37260_).getEntity();
            e.hurt(DieMessages.wasKilledByStone(((EntityHitResult)p_37260_).getEntity(), getOwner()), r.nextInt(5));
            kill();
            return;
        }

        var pos = new BlockPos(p_37260_.getLocation().x, p_37260_.getLocation().y, p_37260_.getLocation().z);
        int a = count(level.getBlockState(pos).getBlock().getName().toString(), "glass");
        if (a > 0) {
            level.destroyBlock(pos, false);
        }
        else {
            if(r.nextDouble(10) > 6)
            //if(!((Player)getOwner()).getAbilities().instabuild)
                    spawnSelf(p_37260_);
            else kill();
        }

    }
    public void spawnSelf(HitResult p_37260_){
        ItemEntity entity = new ItemEntity(level, p_37260_.getLocation().x,p_37260_.getLocation().y,p_37260_.getLocation().z,new ItemStack(Items.TRAVERTINE_PIECE.get()));
        level.addFreshEntity(entity);
        kill();
    }
    @Override
    public Packet<?> getAddEntityPacket() {
        return NetworkHooks.getEntitySpawningPacket(this);
    }
}

Note: projectile is visible for a secong, but then it becomes invisible

Link to comment
Share on other sites

57 minutes ago, diesieben07 said:

Entity renderer registration must be done in EntityRenderersEvent.RegisterRenderers.

Make sure you are using the latest Forge version, there was a problem with the spawning packet that was added.

Updating forge resolved this problem, thank you very much!

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.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • my game crashed and I have no idea why here is a link to the pastebin of the crash https://pastebin.com/vv89r9vC
    • I know duplicated mods are causing the crashes but i just dunno what mod(s) are duplicated   [14:54:36] [main/INFO]: ModLauncher running: args [--username, DiscoloredScars, --version, forge-40.2.0, --gameDir, E:\curseforge minecraft\Instances\MT6 (1), --assetsDir, E:\curseforge minecraft\Install\assets, --assetIndex, 1.18, --uuid, 66ccf15a7ca24a8386d37f6d3bfef878, --accessToken, ????????, --clientId, MjEwMWVmMTYtODVjYS00OTcwLWFmZTktOTZiNTAyYmM2YTQ3, --xuid, 2535421420761636, --userType, msa, --versionType, release, --width, 1024, --height, 768, --launchTarget, forgeclient, --fml.forgeVersion, 40.2.0, --fml.mcVersion, 1.18.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220404.173914] [14:54:36] [main/INFO]: ModLauncher 9.1.3+9.1.3+main.9b69c82a starting: java version 17.0.1 by Microsoft [14:54:36] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/E:/curseforge%20minecraft/Install/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2314!/ Service=ModLauncher Env=CLIENT [14:54:36] [main/INFO]: Found mod file [1.18.2-forge]-Epic-Knights-8.1.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file AdvancementPlaques-1.18.2-1.4.5.1.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file Apotheosis-1.18.2-5.8.1.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file architectury-4.11.93-forge.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file ars_nouveau-1.18.2-2.9.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file AutoLeveling-1.18.2-1.17.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file betterstats-2.2.2+1.18.2.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file blockui-1.18.2-0.0.71-ALPHA.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file Bookshelf-Forge-1.18.2-13.3.56.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file BrassAmberBattleTowers-1.18.2-2.3.12.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file bygonenether-1.3.0-1.18.2.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file caelus-forge-1.18.1-3.0.0.2.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file cloth-config-6.5.102-forge.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file Clumps-forge-1.18.2-8.0.0+17.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file collection-of-singiro-1.19.x-1.1.4.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file collective-1.18.2-6.65.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file ConfigMenusForge-v3.2.0-1.18.2-Forge.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file CreativeCore_FORGE_v2.6.17_mc1.18.2.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file curioofundying-forge-1.18-5.3.0.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file curios-forge-1.18.2-5.0.9.1.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file curiouselytra-forge-1.18.1-5.0.1.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file domum_ornamentum-1.18.2-1.0.50-ALPHA-universal.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file dungeons_enhanced-1.18.2-3.2.1.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file dungeons_gear-1.18.2-4.0.2-beta.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file dungeons_libraries-1.18.2-2.0.5-beta.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file dungeons_plus-1.18.2-1.2.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file embeddium-0.3.18+mc1.18.2.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file EnchantmentDescriptions-Forge-1.18.2-10.0.12.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file EndlessBiomes 1.3s - 1.18.2 (Server-friendly).jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file FarmersDelight-1.18.2-1.2.2.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file FarmersRespite-1.18.2-1.3.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file framework-forge-1.18.2-0.4.3.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file ftb-chunks-forge-1802.3.17-build.265.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file ftb-essentials-1802.2.2-build.83.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file ftb-library-forge-1802.3.11-build.177.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file ftb-quests-forge-1802.3.14-build.191.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file ftb-teams-forge-1802.2.11-build.107.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file ftb-ultimine-forge-1802.3.3-build.70.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file geckolib-forge-1.18-3.0.57.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file Goblins_Dungeons_1.0.8.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file goblintraders-1.8.0-1.18.2.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file ironchest-1.18.2-13.2.11.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file ironfurnaces-1.18.2-3.3.3.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file Jade-1.18.2-forge-5.3.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file jei-1.18.2-9.7.2.1001.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file LegendaryTooltips-1.18.2-1.3.1.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file mahoutsukai-1.18.2-v1.34.62.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file minecolonies-1.18.2-1.1.29-BETA.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file miners_delight-1.18.2-1.1.1.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file modestmining-1.18.2-0.1.41.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file modnametooltip-1.18.1-1.18.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file morevillagers-forge-1.18.2-3.3.2.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file MouseTweaks-forge-mc1.18-2.21.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file mowziesmobs-1.5.32.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file multi-piston-1.18.2-1.2.15-ALPHA.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file MutantMonsters-v3.0.1-1.18.2-Forge.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file oculus-mc1.18.2-1.6.4.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file Oh_The_Biomes_You'll_Go-forge-1.18.2-1.4.7.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file Origins-1.18.2-1.4.1.4-unified.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file pamhc2crops-1.18.2-1.0.6.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file pamhc2foodcore-1.18.2-1.0.3.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file pamhc2foodextended-1.18.2-1.0.5.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file pamhc2trees-1.18.2-1.0.4.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file Patchouli-1.18.2-71.1.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file Pehkui-3.7.7+1.18.2-forge.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file Placebo-1.18.2-6.6.7.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file PuzzlesLib-v3.4.6-1.18.2-Forge.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file Quark-3.2-358.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file reforgium-1.18.2-1.0.12a.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file rpggods-18.2.6.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file rubidium-0.5.6.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file rubidium_extras-1.18.2_v1.3.2.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file selene-1.18.2-1.17.9.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file sereneseasonfix-1.18.2-1.0.6.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file SereneSeasons-1.18.2-7.0.0.15.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file sons-of-sins-1.18.2-1.1.1.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file sophisticatedbackpacks-1.18.2-3.19.4.976.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file sophisticatedcore-1.18.2-0.5.109.515.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file spark-1.10.38-forge.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file structure_gel-1.18.2-2.4.7.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file structurize-1.18.2-1.0.424-ALPHA.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file supplementaries-1.18.2-1.5.18.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file TerraBlender-forge-1.18.2-1.2.0.126.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file TradingPost-v3.2.0-1.18.2-Forge.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file TravelersTitles-1.18.2-Forge-2.1.1.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file upgrade_aquatic-1.18.2-4.0.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file upgradedcore-1.18.2-3.3.0.0-release.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file upgradednetherite-1.18.2-4.3.0.1-release.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file upgradednetherite_items-1.18.2-3.3.0.0-release.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file upgradednetherite_ultimate-1.18.2-3.3.0.0-release.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file valhelsia_core-forge-1.18.2-0.4.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file villagernames-1.18.2-5.2.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file villagespawnpoint-1.18.2-4.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file waystones-forge-1.18.2-10.2.1.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file weaponmaster-1.2.1-1.18.2.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file YungsApi-1.18.2-Forge-2.2.9.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file YungsBetterDungeons-1.18.2-Forge-2.1.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file YungsBetterMineshafts-1.18.2-Forge-2.2.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file YungsBetterNetherFortresses-1.18.2-Forge-1.0.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file YungsBetterOceanMonuments-1.18.2-Forge-1.0.3.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file YungsBetterStrongholds-1.18.2-Forge-2.1.1.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file YungsBetterWitchHuts-1.18.2-Forge-1.0.1.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file YungsBridges-1.18.2-Forge-2.1.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:36] [main/INFO]: Found mod file YungsExtras-1.18.2-Forge-2.1.0.jar of type MOD with provider {mods folder locator at E:\curseforge minecraft\Instances\MT6 (1)\mods} [14:54:37] [main/WARN]: Mod file E:\curseforge minecraft\Install\libraries\net\minecraftforge\fmlcore\1.18.2-40.2.0\fmlcore-1.18.2-40.2.0.jar is missing mods.toml file [14:54:37] [main/WARN]: Mod file E:\curseforge minecraft\Install\libraries\net\minecraftforge\javafmllanguage\1.18.2-40.2.0\javafmllanguage-1.18.2-40.2.0.jar is missing mods.toml file [14:54:37] [main/WARN]: Mod file E:\curseforge minecraft\Install\libraries\net\minecraftforge\lowcodelanguage\1.18.2-40.2.0\lowcodelanguage-1.18.2-40.2.0.jar is missing mods.toml file [14:54:37] [main/WARN]: Mod file E:\curseforge minecraft\Install\libraries\net\minecraftforge\mclanguage\1.18.2-40.2.0\mclanguage-1.18.2-40.2.0.jar is missing mods.toml file [14:54:37] [main/INFO]: Found mod file fmlcore-1.18.2-40.2.0.jar of type LIBRARY with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@2577d6c8 [14:54:37] [main/INFO]: Found mod file javafmllanguage-1.18.2-40.2.0.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@2577d6c8 [14:54:37] [main/INFO]: Found mod file lowcodelanguage-1.18.2-40.2.0.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@2577d6c8 [14:54:37] [main/INFO]: Found mod file mclanguage-1.18.2-40.2.0.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@2577d6c8 [14:54:37] [main/INFO]: Found mod file client-1.18.2-20220404.173914-srg.jar of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@2577d6c8 [14:54:37] [main/INFO]: Found mod file forge-1.18.2-40.2.0-universal.jar of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@2577d6c8 [14:54:37] [main/ERROR]: Failed to build unique mod list after mod discovery. net.minecraftforge.fml.loading.EarlyLoadingException: Duplicate mods found     at net.minecraftforge.fml.loading.UniqueModListBuilder.buildUniqueList(UniqueModListBuilder.java:78) ~[fmlloader-1.18.2-40.2.0.jar%2317!/:1.0]     at net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer.discoverMods(ModDiscoverer.java:76) ~[fmlloader-1.18.2-40.2.0.jar%2317!/:?]     at net.minecraftforge.fml.loading.FMLLoader.beginModScan(FMLLoader.java:166) ~[fmlloader-1.18.2-40.2.0.jar%2317!/:1.0]     at net.minecraftforge.fml.loading.FMLServiceProvider.beginScanning(FMLServiceProvider.java:86) ~[fmlloader-1.18.2-40.2.0.jar%2317!/:1.0]     at cpw.mods.modlauncher.TransformationServiceDecorator.runScan(TransformationServiceDecorator.java:112) ~[modlauncher-9.1.3.jar%235!/:?]     at cpw.mods.modlauncher.TransformationServicesHandler.lambda$runScanningTransformationServices$8(TransformationServicesHandler.java:100) ~[modlauncher-9.1.3.jar%235!/:?]     at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) [?:?]     at java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1779) [?:?]     at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) [?:?]     at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) [?:?]     at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575) [?:?]     at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260) [?:?]     at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616) [?:?]     at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622) [?:?]     at java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627) [?:?]     at cpw.mods.modlauncher.TransformationServicesHandler.runScanningTransformationServices(TransformationServicesHandler.java:102) [modlauncher-9.1.3.jar%235!/:?]     at cpw.mods.modlauncher.TransformationServicesHandler.initializeTransformationServices(TransformationServicesHandler.java:55) [modlauncher-9.1.3.jar%235!/:?]     at cpw.mods.modlauncher.Launcher.run(Launcher.java:87) [modlauncher-9.1.3.jar%235!/:?]     at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-9.1.3.jar%235!/:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-9.1.3.jar%235!/:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-9.1.3.jar%235!/:?]     at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:149) [bootstraplauncher-1.0.0.jar:?] [14:54:37] [main/ERROR]: Mod Discovery failed. Skipping dependency discovery.  
    • ok apparently the issue is even stupider than that. the folder the server was in was called "𝓯𝓻𝓮𝓪𝓴𝔂 server" and apparently the special characters in the folder name break the whole damn thing. this is the stupidest thing in the history of ever
    • Thanks, but now I have the 3d model in hand (and in inventory bcz I won't need that anymore) but now when I try to throw it, it doesnt rotate and its just the end of the trident not the head part. Edit: I removed the 3d custom model. I use the original minecraft files. Json and etc. In minecraft the rendering is made in code. I sent the code in the first message. I have mostly the code. But I don't know how to register the renderers like minecraft do. For example, in minecraft there are 2 jsons: trident_in_hand and trident_throwing , I have both of them. They don't render while I have the item in hand. That's the main problem. I checked the code but I still can't figure out how to register and render the entity basically, in hand
  • Topics

×
×
  • Create New...

Important Information

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