
thebest108
Members-
Posts
503 -
Joined
-
Last visited
Everything posted by thebest108
-
Is it your y spazzing out? I think it's solved by doing yOffset = yOffset/3 I haven't tried it since 1.4 but it might still work
-
I've recently been working on a mod similar to zepplen, but there are some serious roadblocks. For 1 even though the entity is solid, I frequently fall through it. 2nd the entities spaz out on the y axis, if I move a zepplen forward, the blocks y position will be going up and down at random. Does anyone have a solution for these problems? (they seem like synchronization issues but I'm not sure)
-
Zepplen did it, so it's not impossible. I looked through the code but it didn't make much sense. All I managed to make out was something called vector3. Anyone got any ideas?
-
Spawning Custom Mobs at Night (or whenever)
thebest108 replied to Draco18s's topic in Modder Support
Forge Events is how I'd do it -
Does anyone know how to make a bounding box that is at an angle. Ex: zepplen, the block entities had rotated bounding boxes
-
I would make a blank entity and that it would spawn whenever the block was initialized. Then, when the block is right clicked it would call the entity's interact function (note: you should change so it does player.mountEntity(this) ) this putting the place on the chair
-
How do I display a random message per click? [Solved]
thebest108 replied to RaTheBadger's topic in Modder Support
you could add a boolean to the entity so it would be like boolean hasBeenClicked = false; String[] derp = [{"hi","hello","eat my shorts"}]; Random rand = new Random(); public boolean interact(EntityPlayer player) { if(!player.worldObj.isRemote&&!hasBeenClicked) { player.sendChatToPlayer(derp[rand.nextInt(derp.size()-1)]); hasBeenClicked = true; } return true; } -
How do I display a random message per click? [Solved]
thebest108 replied to RaTheBadger's topic in Modder Support
you could have something like String[] derp = [{"hi","hello","eat my shorts"}]; Random rand = new Random(); public boolean interact(EntityPlayer player) { if(!player.worldObj.isRemote) { player.sendChatToPlayer(derp[rand.nextInt(derp.size()-1)]); } return true; } -
you could set its yaw to be the players yaw-180 ?
-
Chat message is sent twice per click [Solved]
thebest108 replied to RaTheBadger's topic in Modder Support
Add if(!player.worldObj.isRemote){Send chat} -
How would I get a world based on dimension Id
thebest108 replied to thebest108's topic in Modder Support
How would I get a world based on dimension Id to send an entity position packet? -
How would I get a world based on dimension Id to send an entity position packet?
-
I have an entity that when it moves, it moves the player on top with it. The only problem is that while player.move is in effect the player can't jump. Anyone know how to fix this?
-
1 more question. My entity is randomly moving up and down and I found out that the position is messed up client side but not server side. How would I tell the client the right position?
-
For multiblocks do an onRandomUpdate to check if all the blocks are around it, and if yes change all the blocks textures and change their tilentities
-
Step 1: Make a new class Step 2: Extend the event class that has the method your looking for (all of them are in minecraftforge.events) Step 3: Override the method your looking for Step 4: in your main class, in init put minecraftforge.registerEventBus Also I think you may want to do an entity update , then check if it's on the ground, then check the rest
-
I suggest you look at extra biomes as it adds a lot of new plants. If you need help recompiling then pm me
-
What i suggest is using an entity spawn event, then use entity instanceof entityItem, then if entityItem.itemStack.id-256 = rottenflesh.id, then convert the items position to an int, check if the block at that position-1 is grass, then replacing it.