Jump to content

TheCursedModder

Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by TheCursedModder

  1. Forge is probably the most feature loaded mod loader currently. You can change just about anything with the game mechanics by using mixins. You can also add more items and feature than what the docs show you. It is good to start with a Modding tutorial series like this one by Kaupenjoe. Some good examples of what is possible with forge is clockwork, dynamic trees, and I guess create but its on fabric too.
  2. Hello I've been having some issues with Multipart entities and that it is constantly taking damage. The video below shows the issues. Also the hit boxes that are moving constantly seem to be still, because you can still be seated on the hit box where it is suppose to be. Here is some modified code taken from EnderDragonPart. public class TheHeartPart extends PartEntity<TheHeart> { public final TheHeart parentMob; public final String name; private final EntityDimensions size; public TheHeartPart(TheHeart pParentMob, String pName, float pWidth, float pHeight) { super(pParentMob); this.size = EntityDimensions.scalable(pWidth, pHeight); this.refreshDimensions(); this.parentMob = pParentMob; this.name = pName; } @Override protected void defineSynchedData() { } @Override protected void readAdditionalSaveData(CompoundTag pCompound) { } @Override protected void addAdditionalSaveData(CompoundTag pCompound) { } @Override public boolean isPickable() { return true; } @Nullable public ItemStack getPickResult() { return this.parentMob.getPickResult(); } @Override public boolean hurt(DamageSource pSource, float pAmount) { return false; //return this.isInvulnerableTo(pSource) ? false : this.parentMob.hurt(pSource, pAmount); } @Override public boolean is(Entity pEntity) { return this == pEntity || this.parentMob == pEntity; } @Override public Packet<ClientGamePacketListener> getAddEntityPacket() { throw new UnsupportedOperationException(); } @Override public EntityDimensions getDimensions(Pose pPose) { return this.size; } @Override public boolean shouldBeSaved() {return false;} } Any help is greatly appreciated!
  3. @Jonathing Seems as if it cannot find the mapping for the mod. Maybe it has something to do with me not having a linked repository to my mod page?
  4. I need to find out the best way to find the best way to apply mapping to my decompiled mod that I lost the dev environment for. Do too an unfortunate hard drive failure and me forgetting to make a GitHub repository. Is there an easier way to get these mapping applied than manually doing them?
  5. Oh I forgot to update the title. I figured out the issue and I'm rather embarrassed to say that it was a file path issue. The game already knew I was accessing the achievements so I wasn't suppose to include advancements in the file path. Minecraft file paths have always confused me a little bit... ResourceLocation advancementId = new ResourceLocation( TheDeadRise.MODID,"adventure/spawntrigger");
  6. @Xoroshio Thanks, I honestly forgot that I was going to have this feature in my mod.
  7. public SetPlayerSpawn(Player player, BlockPos Pos) { ServerPlayer Server_Player = (ServerPlayer) player; Server_Player.setRespawnPosition(Server_Player.getRespawnDimension(), Pos, 0.0F, true, true); ResourceLocation advancementId = new ResourceLocation( TheDeadRise.MODID,"advancements:spawntrigger"); Advancement advancement = Server_Player.getServer().getAdvancements().getAdvancement(advancementId); AdvancementProgress progress = Server_Player.getAdvancements().getOrStartProgress(advancement); for (String criterion : progress.getRemainingCriteria()) { Server_Player.getAdvancements().award(advancement, criterion); } if(advancement == null) { Server_Player.sendSystemMessage(Component.literal("shit is not working")); } else { Server_Player.sendSystemMessage(Component.literal("shit is sorta working")); } } I'm trying to figure out if I'm doing something wrong with the resource location or something else. It's a simple problem, but I keep running into issues. Any help or guidance would be greatly appreciated! Also the game is not crashing at all if advancement is null.
  8. Hello, I want to be able to give the player an item on join but can't figure out how to actually give the player the item. I have the player join event set up, and just need help with the giving the player an item, please and thankyou
  9. I've been at this for a day now and still can't get a custom entity of the zombie class to summon back up. I've tried this by spawning the entity but can get the top block position. Then I tried using the zombie spawn reinforcements method, but cant get the entity to spawn any back up at all?
  10. I've been at this for a day now and still can't get a custom entity of the zombie class to summon back up. I've tried this by spawning the entity but can get the top block position. Then I tried using the zombie spawn reinforcements method, but cant get the entity to spawn any back up at all?
  11. I've been making a mod with a separate difficulty screen and created a config file for it, but I can seem to get the config file to load before the mob attributes.
×
×
  • Create New...

Important Information

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