Everything posted by IMleader
-
[1.15.2] Custom Point of Interest For Villigers
Sounds great. No idea how it works tho, I've seen it work for private fields, but I have no idea how to make it work for constructiors.
-
[1.15.2] Custom Point of Interest For Villigers
Hello, I am trying to add my own Villiager. In order to create its profession I also need to create its POI. However, the constructor for PointOfIntrestType is private. Infact, 99% of the class is private. While I can use the differed registry to order things correctly, it obv creates an error when I try to instantiate the private class. public static final RegistryObject<PointOfInterestType> MONEY_POI = POI.register("money_machine", // First #1 is the number of villigers who can use block at a time, () -> new PointOfInterestType("money_machine", getAllStates(MONEY_MACHINE.get()), 1, (SoundEvent) null, 1)); } Above is how they are created, but, new PointOfInterestType is private. Minecraft seems to create them with a function called func_226359_a_, however, this is also private. Has anyone got custom villagers working in 1.15.2?
- ScrollList gui
-
Render
Any errors? How are you registering the entity. It will be easier for you to put your code on github
-
[1.12.2] Checking if the player can place a block using PlayerInteractEvent.RightClickBlock
Only execute on serverside then.
-
Render
Does it spawn at all? How are you spawning it? Try using the summon command
-
Guis and mod guide books 1.12.2
Create a GUI by extending GuiScreen. Create a GUI handler that extends IGuiHanlder. Inside getClientGuiElement, return the instance of the gui based on the provided id. Finally, on your init() register your handler with NetworkRegistry.INSTANCE.registerGuiHandler()
- ScrollList gui
-
Render
Thats because render() is called by minecraft. Your method is named renderer(). If you can an error for render() it is because your agrguments are wrong.
-
How to Sync Player inventory with server in guiscreen
Create your own packet. https://mcforge.readthedocs.io/en/latest/networking/simpleimpl/
-
ScrollList gui
Hello, I am trying to get a scroll bar in my GUI. It currently scrolls but is a little slow to fast mouse movement. It also completely breaks when the user resizes the window. How can I adapt to these updates? (full screen v.s smaller sizes) Gui class here I have attached a video of it in-game to show its odd effects(Sorry for the resize part, had to fix obs halfway through) EDIT: How would I combine this scroller with the later list? For ex, the items moving with the scroller EDIT: Idk how to remove these videos ;/ 2019-09-22 01-12-18.mp4 2019-09-22 01-12-18.mp4
-
Render
Yea ignore that. I just re-read the docs. Make sure it extends EntityModel
-
Render
Read the error. The type CrackHeadModel is not a valid substitute. Try it with CrackHeadModel.class & make sure that crack head model extends EntityModel
-
[1.12.2] Custom entity does not spawn
Yep, removed infinite spawning and it works.
-
[1.12.2] Custom entity does not spawn
Yes, the breaking would REALLY occur when the world was first loaded, as the game would pause, and thus save. The entity is DEFF created. Before adding back the tem.entityMember bit, they spawn every tick. Very cool way to crash your worlds!
-
How can I get the characters typed in a TextBox/TextField?
Check out, my GUI class. When the class is initialized, I set class level variables to each part of my gui that I needed. That way, when the buttons are clicked(or any event really) I can test aginst my objects. Same applies to you, onAction -> getText
-
[1.14.4] HUD adaptation
Hey! If I am reading correctly, your bar gets moved, but after the player exits the water, the air bar is still there. I saw a similar effect after my post: It seems if you do not bind the texture to the ui ANYTIME you update it, it stays or renders odd.
-
I cant run with more then 1 GB on my minecraft server! PLS HELP.
Make sure you have 64 bit java installed.
-
[1.12.2] Custom entity does not spawn
EIDT: Fixed. See repo
-
Unexpected software install with no delete button
NEVER download forge from any site that is not official. https://files.minecraftforge.net/ is the place to go for forge. In terms of your adware, try to activate your anti-virus, or use adwcleaner.
-
[1.12.2] Custom entity does not spawn
Hey! I am working on the same mod! As part of it, if a team does not have any members, after a set time they will be spawned in the game. For now, they will spawn inside the player. However, I can't seem to get the entity to spawn. if (team.entityMembers.isEmpty()) { // Atleast 5 minutes must pass before we spawn the first folk // TODO: SWAP 60000 with 5 mins if (System.currentTimeMillis() > startTime + 60000) { // TODO: MALE AND FEMALE, RANDOMIZE LOC // DEBUG: 618c707a-83d7-31ad-b075-bd98e2c75926 EntityPlayer player = world.getPlayerEntityByUUID(team.ownerUUID); if (player != null) { EntityFolkMale folkMale = new EntityFolkMale(world); folkMale.setPosition(player.posX, player.posY, player.posZ); world.spawnEntity(folkMale); // team.entityMembers.add(folkMale.getPersistentID()); } } } This code just does not spawn the entity at all. However, if I swap EntityFolkMale with EntityCreeper it works. I have the project on GitHub. Relevant class links: WorldTick.class, EntityFolkMale.class EDIT: With some further testing, it appears that the created entity does exist, and its UUID is saved to the disk after I leave the game. It just does not appear ingame
-
[Solved] Odd food rendering for clients
Cool thanks! For those in the future, I opened GuiIngame.class, found inside render() textures are bound with mc.getTextureManager().bindTexture#, pass the ICONS from Gui.class!
-
[Solved] Odd food rendering for clients
Hello! I am working on the Sim-U-Kraft mod! In part of the mod, the top of the screen has done basic text at the top. I render this in the RenderGameOverlayEvent.Post. My current code is this: @SideOnly(value = Side.CLIENT) @SubscribeEvent(priority = EventPriority.NORMAL) public void overlay(RenderGameOverlayEvent.Post event) { if (event.isCancelable() && event.isCanceled()) { return; } Minecraft mc = Minecraft.getMinecraft(); mc.fontRenderer.drawString("THIS IS A TEST STRING BOY", 10, 10, 0xffffff); } However, this produces an odd graphical glitch(See attachments) Any idea on how to fix this?
-
[1.12.2] Custom Entity Bounding Box
What x,y,z values would I be trying to find?
-
[1.12.2] Custom Entity Bounding Box
Switched. Still can't figure out how to get the bullet to render now, and even still, the hitbox issue. Edit. Also, how can I apply the force bit? entity.addVelocity requires x,y,z not just simply movement forward
IPS spam blocked by CleanTalk.