Everything posted by Animefan8888
-
Teleporting a Player Every Second.
What? What Minecraft version are you using?
-
Teleporting a Player Every Second.
Does this ever get called? public static void init() { eventEffectTeleportation = new PotionEffectTeleportation(); GameRegistry.register(eventEffectTeleportation); } Plus
-
Actual State doesnt change unless world reload
Where did you implement dracos suggestion?
-
Actual State doesnt change unless world reload
- Teleporting a Player Every Second.
Caused by: java.lang.NullPointerException at com.lambda.PlentifulMisc.events.PlayerTickHandler.onPlayerTick(PlayerTickHandler.java:24) This is your problem, something is null on line 24.- Teleporting a Player Every Second.
Your code in the ServerProxy never runs because you never call it, and that is good because you are calling client code in server elements. FMLCommonHandler.instance().bus().register(new PlayerTickHandler(Minecraft.getMinecraft())); You should be registering your EventHandler in common code, aka your main mod class. Why do you have a Minecraft instance when you are given a EntityPlayer instance from the event.- Actual State doesnt change unless world reload
Look at the block in f3 and see if the state data on the right is what it is supposed to be.- ClientOnly message causes problem on server start.
One class for the handler and one more class for the message.- ClientOnly message causes problem on server start.
Is your IMessage and IMessageHandler the same class?- Actual State doesnt change unless world reload
When the data changes call a block update.- [1.10.2] Just another NBT read/write problem
update method is added by the interface ITickable and your getUpdatePacket and onDataPacket looks fine.- [Solved] [1.11] GUI Drawing confusion
You need to sync your data using onDataPacket and getUpdatePacket in your TilePulverizer.- [Solved] [1.11] GUI Drawing confusion
How do you know your TE gained energy from the other mods TE? Show us your Creative capacitor.- Block that holds only one item.
Sorry, its been a long time since i have had to save itemstacks, or rather type the line of code.- Block that holds only one item.
Youc could store an Items registry name. I don't know the code to save an ItemStack off of the top of my head, but all other storage TEs do it.- [1.10] A few tick rate questions
https://github.com/MinecraftForge/MinecraftForge- NBTTagCompound to bytes.
Look at SPacketUpdateTileEntity it passes a NBTTagCompound.- Block that holds only one item.
You are not saving what item you have.- Block that holds only one item.
Remove the semi colon at the end of this line then fix the syntax error that shows up if(jar.itemStored == null) {- Block that holds only one item.
Remove this line then start from there jar.itemStored = heldItem.getItem();- [1.10] A few tick rate questions
Put in a PR to forge so you can add/modify an event.- Teleporting a Player Every Second.
Hugo suggested PlayerTickEvent and there is plenty of documentation on the internet I specifically like cool alias'. http://www.minecraftforum.net/forums/mapping-and-modding/mapping-and-modding-tutorials/1571567-forge-1-6-4-1-8-eventhandler-and Jaeblar has good tutorials.- [1.10.2]How to create custom trees?
What I want is to make a personalized tree, just like vanilla, but with my blocks, it will not generate in the world, but will be made through a recipe(sappling). Make the blocks. Add a recipe for the sapling. Generate a tree shape you want multiple if you want, then look through the vanilla sapling as it demonstrates the vanilla sapling behavior.- Learning to Mod.
Leaning what functions do definitely comes with experience, and you can always just look at them in a deobfuscated state and learn what they do that way (exploring the ins and outs of minecraft).- [1.10] transferstackinslot! Help!!
"Item Right Click" is when you right click while holding an Item. - Teleporting a Player Every Second.
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.