Everything posted by Luis_ST
-
Cannot resolve symbol 'getDamage'
there are no Events from vanilla, all Events are added by Forge there is LivingHealEvent
-
Custom food that applies a random effect.
use your IDE to add the super constructor, all recommend IDE's have this feature (IntelliJ, Eclipse)
-
Slot 0 not in valid range - [0,0)
is this the size of the image file or the size of the screen inside the image
-
Cannot resolve symbol 'getDamage'
first of all basic java is required for modding minecraft what did you mean by native events? getDamage is a method not a class nor an Event
-
Custom food that applies a random effect.
did you add the constructor of the Item class (parameter Item.Properties), your IDE should do this automatically for you
-
Custom food that applies a random effect.
it's a class your Item class should be able to extends the Item class
-
[1.18.2] Making a slippery block
which value did you use as friction of your Block
-
Custom food that applies a random effect.
you need to call EYE_OF_ALWORTH.get()
-
Custom food that applies a random effect.
show how you call it
-
Custom food that applies a random effect.
you need to call RegistryObject#get
-
Custom food that applies a random effect.
i know, this was just a simple example how it could be possible to do
-
Slot 0 not in valid range - [0,0)
use the debugger of your IDE
-
Slot 0 not in valid range - [0,0)
you need to check if the EventHandler is called
-
run.bat not creating the necessary files to run server
update Forge to the latest version 1.16.5 requires java 8
-
Slot 0 not in valid range - [0,0)
you should use FMLClientSetupEvent#enqueueWork, and use an anonymous class or a lambda expression is the EventHandler called?
-
Slot 0 not in valid range - [0,0)
the SubscribeEvent annotation does only work with public static methods and you must use FMLClientSetupEvent#enqueueWork since Screens are not thread safe
-
Lightsaber type ignition for item, need help with how to set that up
an ItemProperty? https://forge.gemwire.uk/wiki/Item_Properties
-
Slot 0 not in valid range - [0,0)
and the EventHandler is not registered:
-
Slot 0 not in valid range - [0,0)
you need to register a MenuScreen for your MenuType in FMLClientSetupEvent#enqueueWork via MenuScreens.register
-
Custom food that applies a random effect.
yeah it should, this is the logic of the vanilla SuspiciousStewItem
-
Game crash
depends on your launcher, but normally in .minecraft/config/forge-client.toml
-
How can I get vanilla Minecraft source code with minimal distortion?
why? there is no reason for it, moreover it's illegal
-
Custom food that applies a random effect.
why did you check the Item name, you can just compare the Items with the == operator why did you use LivingEntityUseItemEvent.Finish? you can just override #finishUsingItem in your Item class and perform the action you want there i would recommend you to avoid constants when working with registries you can use something like: List<MobEffect> effects = Lists.newArrayList(ForgeRegistries.MOB_EFFECTS.getValues()); MobEffect randomEffect = effects.get(new Random().nextInt(effects.size()));
-
1.14.4 Launching the Game with a Premium Minecraft Account
https://gist.github.com/50ap5ud5/beebcf056cbdd3c922cc8993689428f4#minecraft-authentication-in-dev-environments also do not post in ancient threads
-
Game crash
delete this client config file if you haven't modify it
IPS spam blocked by CleanTalk.