Everything posted by Luis_ST
-
Dependency crashes during mod loading
use Curse Maven
-
how can I make a sword that summons lightning strikes
overwrite Item#use in your Item class, if you want to summon the LightningBolt only if the Item is used on a Block overwrite Item#useOn, then create there a new LightningBolt and add it via Level#addFreshEntity to the world
-
(1.16.5 MCP) entity.remove() or entity.setDead() doesnt work
this is client side only so world.isRemote returns always true
-
[1.18.1] Problems with the generation of ores
you never register the BiomeLoadingEvent handler
-
[1.18.1] Item to shoot fireball where player is looking on use
try to use 1.0F as last parameter in shootFromRotation
-
Dependency crashes during mod loading
show your build.grade file
-
Data packs are preventing me to load or create a new world.
in .minecraft/logs/debug.log
-
Compatibility Problem with REI
post debug log
-
[1.18]How to add PlayerData
then subscribe to TickEvent.Player and check if it's on server, then get your Capability and call tick there Note: TickEvents are fired twice you need to check the phase of the Event
-
[1.16.5] Mod KeyBinds Conflict
it's KeyBind#isDown you need different conditions, but minecraft will mark this KeyBind as a conflict KeyBind which means it colored red in the settings yeah that should be possible, but you don't need a custom KeyBind for that, since you need to cancel the Input of the F key (if your conditions are true) via KeyInputEvent, if you cancel the input just send a custom Packet to the server which do your logic for the Item on server Note: KeyBindings are client side so you need to use the Minecraft class to get the ClientPlayerEntity
-
[1.18]How to add PlayerData
about which method you are talking, MyCapabilityInterface#tick? it depends on what the method should do
-
Server won't start
update forge
-
[1.18]How to add PlayerData
what are you talking about?
-
1.16.5 server install wont make json file
about which json files do you take
-
GetServer() is Null / What is the best way to get a permanent server instance?
you can get the server via ServerLifecycleHooks.getCurrentServer, if the game is running (there is a World and you are on server) it will never return null also note there is a code feature which you can use to post code here
-
All The Mods 6 Server Crashes on Startup
downgrade your java to a older version of java 8
-
[1.18]How to add PlayerData
you could make the fields final and initialize the level field in the constructor, does it work?
-
(1.16.5 MCP) turn on the noclip is not working
if this retruns true the LivingEntity is a PlayerEntity so you can cast the LivingEntity of the Event to a PlayerEntity, if you don't know how to do that -> learn basic Java.
-
(1.16.5 MCP) turn on the noclip is not working
please don't ask for my help in other threads, I read 95% of all threads if i have an answer/solution i will reply, but i will take a look into your thread (again) do not use the Minecraft class when you want to change a server side thing use the LivingEntity of the Event use and instanceof check instead of == to check if the LivingEntity is a PlayerEntity LivingUpdateEvent#getEntityLiving and LivingUpdateEvent#getEntity retrun the same Entity
-
[1.18]How to add PlayerData
correct, you can short up the code a bit but this is optional yeah that's basic java, to create a Constructor with a parameter and then to store the Object in Field
-
(1.16.5 MCP) turn on the noclip is not working
show the update code so I can debug this locally I haven't done so much render stuff, I hava basic knowledge, but for your question it's not enough
-
Minecraft 1.16.5 always crash when forge install even without any mod
downgrade your java to a older version of java 8
-
Trying to private host a Minecraft Skybees server. Runs on 1.16.5 and im having some kind of Java issue.
downgrade your java to a older version of java 8
-
(1.16.5 MCP) turn on the noclip is not working
it should work in LivingUpdateEvent i mean the debug feature of your IDE, or a simple Logger#debug
-
(1.16.5 MCP) turn on the noclip is not working
iirc the Player class override the tick method completely which call the LivingUpdateEvent in LivingEntity, this means he does not call super. But now I'm not sure I will later take a look into it.
IPS spam blocked by CleanTalk.