-
Posts
1160 -
Joined
-
Days Won
7
Everything posted by poopoodice
-
You need a renderer for your entity
-
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
poopoodice replied to Mightydanp's topic in Modder Support
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) -
I believe package is just another name of a folder in Eclipse. Just use Directory in Intellij.
-
You can do it with tileentity renderer.
-
[1.15.2] Storing player location for a 'measure' command
poopoodice replied to Cecil's topic in Modder Support
@CapabilityInject https://mcforge.readthedocs.io/en/latest/datastorage/capabilities/#using-an-existing-capability -
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.
-
ForgeRegistries.ENTITIES
-
[SOLVED] Problem with 1.16.1 mod! Armor issues.
poopoodice replied to Anonomys's topic in Modder Support
Try add your mod id to the name, something like MODID + ":blue_stone" -
[1.16.1] Block loot table, multiple possible drops + silk touch
poopoodice replied to VaalAlves's topic in Modder Support
Do you mind posting the updated code? -
[1.16.1] Block loot table, multiple possible drops + silk touch
poopoodice replied to VaalAlves's topic in Modder Support
https://minecraft.gamepedia.com/Loot_table But I have no idea about how to make it only drop one of them -
-
[1.15.2] Armor Set and Potion Effects
poopoodice replied to TitanKnight100's topic in Modder Support
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
poopoodice replied to TitanKnight100's topic in Modder Support
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
poopoodice replied to VaalAlves's topic in Modder Support
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)
poopoodice replied to MarsKittenPro's topic in Modder Support
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 -
It works totally fine in my dev environment. There must be something messed up with yours, you may want to recreate all folders...etc.
-
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.
-
Good to know. Your structure and json files looks fine, is it possible for you to upload a repo?
-
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
poopoodice replied to Lightlygamer1's topic in Modder Support
https://docs.oracle.com/javase/tutorial/java/javaOO/anonymousclasses.html -
[1.16.1]Render enchanted glint to item
poopoodice replied to Lightlygamer1's topic in Modder Support
return true in hasEffect() -
[1.16] Smooth entity render - how it was made?
poopoodice replied to Dzuchun's topic in Modder Support
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?