-
Posts
390 -
Joined
-
Last visited
-
Days Won
15
Everything posted by vemerion
-
First of all you have to do as dice suggested, and add this to your LaserBoltEntity: @Override public IPacket<?> createSpawnPacket() { return NetworkHooks.getEntitySpawningPacket(this); } Second, it seems like your renderer does nothing. You could look at for example ShulkerBulletRenderer to see how you could render your model.
-
Does your entity model inherit from AgeableModel? If so you should be able to specify the childBodyScale to make the model smaller.
-
How to make an Item Tier have an enchantment glint by default?
vemerion replied to Snad's topic in Modder Support
You could utilize anonymous classes at registration like so: new SwordItem(ModItemTierSup_Pork.SUP_PORK, 3, -1.0F, new Item.Properties().group(ItemGroup.COMBAT)) { @Override public boolean hasEffect(ItemStack stack) { return true; } } -
How to make an Item Tier have an enchantment glint by default?
vemerion replied to Snad's topic in Modder Support
Ok, as far as I know, there is now way to make all items in an item tier glint, but you could make a subclass of TieredItem which all your pork tier items could use, which sets hasEffect to true. Or you could make an anonymous class (which sets hasEffect to true) when registering your pork tier items. -
How to make an Item Tier have an enchantment glint by default?
vemerion replied to Snad's topic in Modder Support
It seems like you are not actually using your ItemFoods class for anything. -
Dedicated Server Not Calling PlayerEvent.PlayerLoggedInEvent
vemerion replied to sirfredrick's topic in Modder Support
Strange, because the PlayerLoggedInEvent fires for me when I log on to a dedicated server. What version are you running? And how are you registering your event listener? -
[SOLVED] [1.16.1] Light gray tooltip on any item?
vemerion replied to RubyNaxela's topic in Modder Support
new TranslationTextComponent("block.moleculeforce.copper_ore").applyTextStyle(TextFormatting.GRAY); -
playsound event causing NullPointerException
vemerion replied to LinuxMinecrafter's topic in Modder Support
if (Minecraft.getInstance().world != null) If you are struggling with these concepts, I gently suggest taking some time to learn java before starting modding Minecraft. There are dozens java tutorials only a google search away! -
playsound event causing NullPointerException
vemerion replied to LinuxMinecrafter's topic in Modder Support
You are trying to play a sound in the world before it exists. Make sure that the world is not null before playing the sound. -
If you are using 1.15, you can use the addEntity method that the World class has, not sure if this is still true for 1.16.
-
Override the hasEffect method in your item class to always return true, to get the 'enchantment glint' effect. Edit: Uh oh, I was too late it seems.
-
Thank you for your response, that was the conclusion I also came to. Now I just need to fire up GIMP for the first time in years and try to make something not too awful
-
Hello everyone! I have a question which is not directly related to forge, but to Minecraft modding in general. So, I am making a mod that adds creatures which are based on vanilla block, and thus these creatures have textures similar to or identical to some vanilla Minecraft textures. My question is therefore: Is it accepted to use modified vanilla textures in modding, or should I make my own textures completely from scratch? Thanks!
-
You can't add an entity from the client, you have to use another event, for instance the PlayerTickEvent.
-
[1.15.2] Remove Slowness when using an Item
vemerion replied to xanderindalzone's topic in Modder Support
I know it is kind of a band aid on top of a band aid, but if you try to stop the FOV update with FOVUpdateEvent you could more easily observe any speed changes. -
[1.15.2] Remove Slowness when using an Item
vemerion replied to xanderindalzone's topic in Modder Support
Bugs how exactly? Is the speed unchanged, or is it the FOV that is changing as in the previous video you shared? -
Hi, and welcome to forge modding! I would strongly recommend updating to a newer version of forge (preferably 1.15.2), since 1.12 is no longer supported on this forum. When you have updated to 1.15.2, I strongly recommend following a tutorial such as Cadiboo's (here), to learn the very basics of forge modding. As for a list of all events, you can find them in Eclipse as detailed here (if you are using Intellij I am sure there is a similar way to achieve it). Hope this helps!
-
No, you do not need to use deferred registry, you can add a custom keybinding in the FMLClientSetupEvent like so: keyBinding = new KeyBinding("description here", GLFW.GLFW_KEY_P, "category here"); // keyBinding is a static variable ClientRegistry.registerKeyBinding(keyBinding);
-
You could create a new class that extends net.minecraft.world.gen.feature.Feature, and add that feature to the desert biome. Try looking at the vanilla code features to learn more about them.
-
[1.15.2] Remove Slowness when using an Item
vemerion replied to xanderindalzone's topic in Modder Support
You are right, changing MOVEMENT_SPEED also changes the FOV of the player. You could remove the FOV change by listening to FOVUpdateEvent. -
[1.15.2] Remove Slowness when using an Item
vemerion replied to xanderindalzone's topic in Modder Support
Are you sure? This code works for me (and makes the player really fast when using items): @SubscribeEvent public static void onItemUse(LivingEntityUseItemEvent event) { if (event.getEntityLiving() instanceof PlayerEntity) { PlayerEntity player = (PlayerEntity)event.getEntityLiving(); player.getAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(2); } } -
[1.15.2] Remove Slowness when using an Item
vemerion replied to xanderindalzone's topic in Modder Support
If you can not remove the slowness effect when using your item, you could perhaps instead compensate by increasing the MOVEMENT_SPEED attribute of the player while the player is using the item. -
[SOLVED]-[1.16.1] How to handle Custom Slime Death
vemerion replied to samjviana's topic in Modder Support
Glad to be of help. Happy modding!