-
Posts
6157 -
Joined
-
Last visited
-
Days Won
59
Everything posted by Animefan8888
-
[1.12.2] FallingBlockEntity addVelocity
Animefan8888 replied to Pikachu923's topic in Modder Support
What? Make it like 1 or a decimal maximum. -
You should use ChunkEvent.Load/Unload. Save and load are meant to deal specifically with data.
-
[1.12.2] sound plays multiple times when right click is held down
Animefan8888 replied to madmagic's topic in Modder Support
Yes you have to have a use time and maybe a use action. -
@EventBusSubscriber(bus=Bus.MOD, modid="modid") public class EntityTypes { @ObjectHolder("modid:red") public static final EntityType RED = null; @SubscribeEvent public static void registerEntities(Register<EntityType<?>> event) { event.getRegistry().registerAll( EntityType.Builder.create(RedEntity::new, EntityClassification.CREATURE).build(Reference.MOD_ID + ".red").setRegistryName("red") ); } } That's more or less what it should look like.
-
[1.12.2] FallingBlockEntity addVelocity
Animefan8888 replied to Pikachu923's topic in Modder Support
What did you change it to? -
[1.12.2] FallingBlockEntity addVelocity
Animefan8888 replied to Pikachu923's topic in Modder Support
Your velocity is way to high. That's 10-20 blocks per tick. -
[1.14.4] Testing ForgeConfigSpec.BooleanValue in code
Animefan8888 replied to kwpugh's topic in Modder Support
Uhh no, as it turns out recipes are no longer a forge registry or at least not yet, There are recipe conditions which should let you disable the recipe based on config options. Choonster explains how to something similar to this here. -
[1.14.4] Testing ForgeConfigSpec.BooleanValue in code
Animefan8888 replied to kwpugh's topic in Modder Support
You can remove them from the forge registry it is one of the modifiable ones. -
[1.14.4] Testing ForgeConfigSpec.BooleanValue in code
Animefan8888 replied to kwpugh's topic in Modder Support
Here is one. Items and Blocks are registered at the beginning of Minecraft/Forge launching. Now if you had that based off of config values certain items would register and certain items wouldn't. Now imagine a player trying to connect to a server who has a set up config file. One that is different from his. Disabling certain items. What do you think would happen. The player would not be able to connect because the Item/Block registries are different. -
[1.14.4] Testing ForgeConfigSpec.BooleanValue in code
Animefan8888 replied to kwpugh's topic in Modder Support
Then you will also have to do something else like when a chunk is loaded and by extension TileEntities remove them from their exposed IItemHandler capability. You'll also want to insert in Item#inventoryTick them removing themselves from the players inventory.And if Item#inventoryTick doesn't work you'll have to use the PlayerTickEvent. -
Texture not rendering correctly with blit function 1.14.4
Animefan8888 replied to Zuve's topic in Modder Support
Yeah there are now many methods with different parameters. Could have been that those methods hadn't been mapped. -
[1.12.2] sound plays multiple times when right click is held down
Animefan8888 replied to madmagic's topic in Modder Support
Yes, but it doesnt stop getting called until its let go. Or it's being "used" like a bow. @madmagic Take a look at ItemBow. -
There aren't any square brackets...
-
An error where? What does it say?
-
Checking if a player swung with full attack power
Animefan8888 replied to Javisel's topic in Modder Support
Yes I understand that, my idea was maybe they added a Field to the LivingDamageEvent that contained the value or something related, its unlikely. Also do you know if this event is pushed before the EntityLiving#ticksSinceLastSwing is reset to 0. Because if it isnt then EntityPlayer#getCooledAttackStrength wont work. -
Texture not rendering correctly with blit function 1.14.4
Animefan8888 replied to Zuve's topic in Modder Support
This is the way it was expected to be in older versions too, but you didnt have to use the method that required it to be 256x256. You'll notice that all Minecraft gui assets are 256x256. -
Checking if a player swung with full attack power
Animefan8888 replied to Javisel's topic in Modder Support
Sweeping edge happens earlier in the execution order. Now maybe you can use LivingDamageEvent(I think that is the name) which might be early enough in the execution, maybe it even has a field that tells you about the cool down I'm not sure, but worth a try. -
Game crashing in all versions (1.12.2, 1.1414)
Animefan8888 replied to Alex Hublon's topic in Support & Bug Reports
Take a look here. -
[1.14.3] Open GUI upon player-entity interaction
Animefan8888 replied to eafooe's topic in Modder Support
Can you explain more on what your exact problem is? I told you that entity gui/containers function the same as TileEntity ones. The only difference is you have an Entity instead of a TileEntity.