TestingSubject002
Members-
Posts
73 -
Joined
-
Last visited
-
Days Won
1
Everything posted by TestingSubject002
-
world.isRemote() returns true on server side?
TestingSubject002 replied to TestingSubject002's topic in Modder Support
Oh, God! How could I miss that?! Thank you very much. I am filling myself so stupid... But can you explain me then why are PowerDistributionEvent being called if they are server-side? (They are posted only on server) -
I'd got some kind of anomaly during creation of my Forge 1.12.2 modification. Short description: world.isRemote somehow returns true on server side. Long description: I have a class which extends Entity. I have put logic into onUpdate function and I was suprised when I figured out that this method is called on client side. I have added check to make sure that my logic is performed on server side. However, this check always fails. I have decided to test if I had accidentally called world.spawnEntity on client side (which is impossible!), so I put logger.info(world.isRemote); after that line (btw, what is the best method for testing?). This check has returned "true", what means that it was executed at the client side, but console thread says that this text was printed from server thread. I am feeling competely lost. The only one my proposition is that the problem is that I am using common logger for client and server sides, but I have never seen such Github repository: https://github.com/mystery-coder/Souls-Industry/tree/dev Problematical code parts: forgemod.mystery.soulsindustry.tile.TileLamp.consume(...) (Event is called from TickEvent.ServerTickEvent handler), forgemod.mystery.soulsindustry.entity.EntityWisp.onUpdate() Any help would be appreciated.
-
Cant open minecraft with forge
TestingSubject002 replied to MGHaderZ's topic in Support & Bug Reports
Does Minecraft without Forge work properly? -
I'll get a look at SimpleModelFontRenderer.
-
There would be a lot of books and maybe player-generated, but text of every book is constant.
-
Hello. I want to create a new item (book if telling more precisely) which has custom text on it. How can I do that? I suppose that I have to create my own ICustomModelLoader, IModel and return BakedItemModel with extra quads attached to letters' textures in IModel bake(...) function. Am I right?
-
Working with capabilities correctly.
TestingSubject002 replied to TestingSubject002's topic in Modder Support
Sorry, this won't repeat again. And what about other capabilities? For example, if I create my own capability, would it be safe to call CAPABILITY.getDefaultInstance() this way or should I do this inside of function annotated @CapabilityInject? -
Working with capabilities correctly.
TestingSubject002 replied to TestingSubject002's topic in Modder Support
So? -
What's your Java and server version?
-
Problem with the RAM allocated to the server
TestingSubject002 replied to WanDayo's topic in Support & Bug Reports
Try adding "pause" command at the end of your .bat file and post an error if it is. -
i need some help forge keeps crashing
TestingSubject002 replied to zane1788's topic in Support & Bug Reports
Well, sorry, but I can't figure out the problem. The only thing I can understand is that minecraft creashes before mod loading (bad Minecraft Forge version?). You should wait for more skilled member. -
i need some help forge keeps crashing
TestingSubject002 replied to zane1788's topic in Support & Bug Reports
Are you using any texture packs? -
i need some help forge keeps crashing
TestingSubject002 replied to zane1788's topic in Support & Bug Reports
Well, can you submit full log? By the way, you can drag file to your post to attach it, there is no need to post it's content this way. **EDIT:** Thanks, this one is fine. -
i need some help forge keeps crashing
TestingSubject002 replied to zane1788's topic in Support & Bug Reports
Wait, are we talking about Minecraft Forge? -
i need some help forge keeps crashing
TestingSubject002 replied to zane1788's topic in Support & Bug Reports
I... am not sure that this is Forge at all. -
Problem with the RAM allocated to the server
TestingSubject002 replied to WanDayo's topic in Support & Bug Reports
-
I can't understand how to correctly work with capabilities. For example, I have a Tile Entity which has IItemHandler Capability (1 slot is ok). @CapabilityInject(IItemHandler.class) public static final Capability<IItemHandler> ITEM_HANDLER_CAPABILITY = null; private IItemHandler inventory = ITEM_HANDLER_CAPABILITY.getDefaultInstance(); // ... hasCapability, getCapability and other stuff This code was written using McHorse tutorial, is it correct? If yes, then why are we using getDefaultInstance method of ITEM_HANDLER_CAPABILITY which might be null? Sorry for my English.
-
Item inside of creative... delete slot?
TestingSubject002 replied to TestingSubject002's topic in Modder Support
Thank you very much. -
Item inside of creative... delete slot?
TestingSubject002 replied to TestingSubject002's topic in Modder Support
Can anybody help me? -
There are two question that I have: "How?" and "How to fix"? Our github: https://github.com/mystery-coder/Souls-Industry By the way, this item can be found in any creative tab, but we haven't attached it to any. P.S.: It has been there since the start from the game and I can't remove it from this slot.
-
Thank you very much.
-
You have to download Forge MDK, not installer.