Everything posted by poopoodice
-
[1.15.2] Entity error
You need a renderer for your entity
-
change model texture [1.14.4]
TileEntityRendererby Mjcty or Modifying IBakedModel by TGG I feel like the second one is more suitable for you since you are only moving the cubes and changing their colour.
-
Render a model inside a model if a slot isnt empty
I assume what you mean by model is Item model. Use ItemRenderer.getItemModelWithOverrides() To get the baked model, or just use ItemRenderer.renderItemIntoGUI() to render the itemstack into the gui (which eventually use the method above, depend what are you trying to do)
-
Intellij Minecraft Modding
I believe package is just another name of a folder in Eclipse. Just use Directory in Intellij.
-
change model texture [1.14.4]
You can do it with tileentity renderer.
-
[1.15.2] Custom item's variable is shared throughout all instances of the item
There's only one instance per Item. To store informations on ItemStacks you can use either Nbt tags or Capabilities.
-
[1.15.2] Storing player location for a 'measure' command
@CapabilityInject https://mcforge.readthedocs.io/en/latest/datastorage/capabilities/#using-an-existing-capability
-
I Need Help with Intellij IDEA
Override onItemRightClick in your item class, and set player.abilities.allowFlying to true (may not be the correct/best way, just an example) For the left click one, there are a couple ways of doing it, but I'll introduce the one I'm using (You can find lots of posts by searching "left click"). Listen to MouseInputEvent Use event.getAction() and event.getButton() to check the action is under the correct condition, and use packets to spawn entities on the server. world.addEntity(a new instance of BatEntity) You can find lots of information using the searching bar on the top of this site.
-
Spawing mobs in world with Forge
ForgeRegistries.ENTITIES
-
[SOLVED] Problem with 1.16.1 mod! Armor issues.
Try add your mod id to the name, something like MODID + ":blue_stone"
-
[1.16.1] Block loot table, multiple possible drops + silk touch
Do you mind posting the updated code?
-
[1.16.1] Block loot table, multiple possible drops + silk touch
https://minecraft.gamepedia.com/Loot_table But I have no idea about how to make it only drop one of them
-
1.16.1 Game Crash error
- [1.15.2] Armor Set and Potion Effects
check EffectInstance() the constructor you are using is passing 0 as its duration. Also potion effects should not be applied on client- [1.15.2] Armor Set and Potion Effects
It does not allow you to override the method because it is different from its parent method. it should be onArmorTick(ItemStack stack, World world, PlayerEntity player) not onArmorTick(World world, PlayerEntity player, ItemStack itemStack) not sure if it's changed in 1.15.2+ tho, but you can always find it in Item class. Btw you have an extra curly braces here @Override public void onArmorTick(World world, PlayerEntity player, ItemStack itemStack){ if(player.getItemStackFromSlot(EquipmentSlotType.HEAD).getItem() == RegistryHandler.AQUAMARINE_HELMET.get() && player.getItemStackFromSlot(EquipmentSlotType.CHEST).getItem() == RegistryHandler.AQUAMARINE_CHESTPLATE.get() && player.getItemStackFromSlot(EquipmentSlotType.LEGS).getItem() == RegistryHandler.AQUAMARINE_LEGGINGS.get() && player.getItemStackFromSlot(EquipmentSlotType.FEET).getItem() == RegistryHandler.AQUAMARINE_BOOTS.get() ) { <--------------------- //player.addPotionEffect(new EffectInstance(Effects.SPEED)); }- [1.16.1] Block loot table, multiple possible drops + silk touch
You have two "rolls" which one is for the normal drops, and another roll for the silk touch, and they are not related. Means doesn't matter if the roll on the top succeed or not, it will always go for another roll for the normal drops at the bottom.- Need Help With Render Overlay Crash Report (forge 1.15.2)
I remember seeing similar question in previous posts, and iirc it's mac's problem that it reads some files that isn't supposed to be read- [Solved] How to see which face of a block the player has collided with
you can use player.getHorizontalFacing() to get the player's facing, and player.getPosition() to get the blockpos of the player, and BlockPos.offset(dir) to get the translated position- 'Mod Resources' for variant: 'normal'
It works totally fine in my dev environment. There must be something messed up with yours, you may want to recreate all folders...etc.- 'Mod Resources' for variant: 'normal'
I don't think you can (beside gists), but you can always remove the link here or make the repo private afterwards. I can't guarantee that I can fix your problem tho.- 'Mod Resources' for variant: 'normal'
Good to know. Your structure and json files looks fine, is it possible for you to upload a repo?- 'Mod Resources' for variant: 'normal'
I'm not sure if this is the setting of your IDE but ASSETS should not be capitalized.- [1.16.1]Render enchanted glint to item
https://docs.oracle.com/javase/tutorial/java/javaOO/anonymousclasses.html- [1.16.1]Render enchanted glint to item
return true in hasEffect()- [1.16] Smooth entity render - how it was made?
Oh yeah, they are actually a part of layers. Or is it possible instead of getting the position of the player when render, sync the position of custom entity with the owner on server then just render it normally? - [1.15.2] Armor Set and Potion Effects
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.