Is it compatible with texture packs such as john smith legacy?
Edit:
Nvrmind I play java edition.
Is it compatible with texture packs such as john smith legacy?
Edit:
Nvrmind I play java edition.
Do villagers claim beds? I am building a village but don't want villagers stealing my bed!
Can you guys make it to where villages spawn flattened ground? It seems that every time I find a village It appears to have been hit by an earthquake.
do bad omens apply to player made villages with villagers in them?
When will they update the villagers themselves?
Also think it would be cool to name villagers using nametags that way it is much easier to find villagers you have traded with before instead of going through each individual villager.
In order to counter the pillagers can they make it to where iron golems spawn more frequently?
I use John Smith Legacy texture pack so I didn't even notice.
I find it a joy to find villages that are in good condition. This pillager update is really going to annoy me.
Make Dolphins Aggressive towards drowned zombies.
0
Here is the code for my custom planks:
I am trying to make it where the Ironwood planks are much harder to break then the yew ones. Any ideas?
Thanks in advanced.
0
I have watched harrys tech reviews tutorials on how to make logs using variants. The problem is he never mentioned how to make the blocks rotateable like regular logs in the game. Anyone know what needs to be added to my scripts to create rotateable logs?:
PS: My mod requires that I use variants because the sawmill block I created will not process logs created using a regular block class.... the logs must come from variants.
0
Bump
0
Note the items used in the video are placeholder items.
0
I have managed to fix the recipe system for my sawmill and now I face a new problem:
When I remove the items from the sawmill they do not enter the first available inventory slots. How do I fix?
Here is the sawmill's container code:
0
Here is the container code:
(Also it now only seems to work with birch)
package kenneths_mod.medieval_mod.objects.machines.sawmill;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.IContainerListener;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
import net.minecraftforge.items.CapabilityItemHandler;
import net.minecraftforge.items.IItemHandler;
import net.minecraftforge.items.SlotItemHandler;
public class SawmillContainer extends Container {
private final SawmillTE tileentity;
private int sawTime;
public SawmillContainer(InventoryPlayer player, SawmillTE tileentity) {
this.tileentity = tileentity;
IItemHandler handler = tileentity.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null);
this.addSlotToContainer(new SlotItemHandler(handler, 0, 39, 34));
this.addSlotToContainer(new SlotItemHandler(handler, 1, 72, 34) {
public boolean isItemValid (ItemStack stack) {
return false;
}
});
for(int y = 0; y < 3; y++) {
for(int x = 0; x < 9; x++) {
this.addSlotToContainer(new Slot(player, x + y * 9 + 9, 8 + x * 18, 84 + y * 18));
}
}
for(int x = 0; x < 9; x++) {
this.addSlotToContainer(new Slot(player, x, 8 + x * 18, 142));
}
}
@Override
public boolean canInteractWith(EntityPlayer playerIn) {
return true;
}
@Override
public void detectAndSendChanges() {
super.detectAndSendChanges();
for(int i = 0; i < this.listeners.size(); i++) {
IContainerListener listener = (IContainerListener)this.listeners.get(i);
if(this.sawTime != this.tileentity.getField(0)) {
listener.sendWindowProperty(this, 0, this.tileentity.getField(0));
}
}
this.sawTime = this.tileentity.getField(0);
}
@Override
public ItemStack transferStackInSlot(EntityPlayer playerIn, int index) {
ItemStack itemstack = ItemStack.EMPTY;
Slot slot = (Slot) this.inventorySlots.get(index);
if(slot != null && slot.getHasStack()) {
ItemStack itemstack1 = slot.getStack();
itemstack = itemstack1.copy();
if(index >= 0 && index < 27) {
if(!this.mergeItemStack(itemstack1, 27, 36, false)) {
return ItemStack.EMPTY;
}
} else if (index >= 27 && index < 36) {
if(!this.mergeItemStack(itemstack1, 0, 27, false)) {
return ItemStack.EMPTY;
}
} else if (!this.mergeItemStack(itemstack1, 0, 36, false)) {
return ItemStack.EMPTY;
}
if(itemstack1.isEmpty()) {
slot.putStack(ItemStack.EMPTY);
} else {
slot.onSlotChanged();
}
if(itemstack1.getCount() == itemstack.getCount()) {
return ItemStack.EMPTY;
}
slot.onTake(playerIn, itemstack1);
}
return itemstack;
}
public void onContainerClosed(EntityPlayer playerIn) {
super.onContainerClosed(playerIn);
}
}
0
yes
0
made more changes:
But it does not seem to work for oak planks. plz help.
0
Ok I now tried:
and it seems to work thanks.
Edit: actually now when I put the planks in it does nothing.... not working
0
Okay I tried:
but it gives me an error saying:
Description Resource Path Location Type
The constructor ItemStack(BlockPlanks.EnumType, int) is undefined SawmillRecipes.java /Kenneths Mod/src/main/java/kenneths_mod/medieval_mod/objects/machines/sawmill line 27 Java Problem
0
Here is the code for the sawill's block and tile entity:
And here is the sawmill's container:
And here is the sawmill recipes class:
And lastly the recipe class:
The video could probably explain it better than I could:
note that the input and output items are just placeholders and will be replaced with other items later.
Also if you spot anything else that can go wrong with my code please tell me. thanks
0
I am trying to make a sawmill that when people place logs in the sawmill's GUI, it saws the log into its corresponding plank.
Is there any way to specify what log creates what planks?
0
I am trying to add a custom furnace without a GUI. Start smelting is called when the player right clicks on the furnace while holding an iron ore.
What is happening is that it does not save the value "fuelLeft"
I do not know if it saves anything else....
0
I am making a mod that adds a special smelting furnace for the purpose of making it more difficult to smelt metals.
The furnace has no GUI, so in order to retrieve the metal ingot from the furnace, the player must use a set of tongs (an item I am adding in my mod).
What I need help with is getting the ingot to be added to the player's inventory if there is room for it, or dropping it on the floor if there is no more room in the player's inventory. Can I get some help please?
0
Says something about line 76:
what is wrong?
For those who need to know I am using the scripts from harrys tech reviews tutorial:
https://github.com/HarryTechRevs/Minecraft-Modding-1.12/blob/master/main/java/harry/mods/tutorial/blocks/containers/ContainerSinteringFurnace.java