This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
0
nvm , found. thx for advises
To create a mod you need Eclipse or IntelliJIDEA , you can find a lot of tutorials on youtube to create a mod.
Which things don't work ?
Hi ! I'd like to create a keybind (already done) but with some condition :
When I press "B" , if the player has a backpack on him the keybind works, but when he don't have a backpack on him, the keybind doesn't work.
I tried this :
public void onEvent(KeyInputEvent event) { if(keyBindBackpack.isPressed() && player.inventory.armorItemInSlot(2) == backpack) { keyTestTyped(); } }
but the game crash.. CRASH REPORT : https://pastebin.com/BJh71kyk Thanks for taking your time reading this.
Last time i posted a message a mod blocked my thread.. so ^^'
Hi !
I'm trying to make a new music disk to play custom songs with a jukebox, but everytime i set my disk in a jukebox, the Eclipse console says :
"[Client thread/WARN]: Unable to play unknown soundEvent: craftislife:records.moula"
Here's my class :
MusicDisc :
package com.mod.craftislife.music; import java.util.ArrayList; import com.mod.craftislife.Reference; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.ItemRecord; import net.minecraft.item.ItemStack; import net.minecraft.util.ResourceLocation; public class MusicDisc extends ItemRecord { public static ArrayList<MusicDisc> list=new ArrayList<MusicDisc>(); private String recordname; public MusicDisc(String name) { super(name); list.add(this); setUnlocalizedName("record"); setTextureName("record_"+name); setCreativeTab(CreativeTabs.tabMisc); recordname=name; } @Override public ResourceLocation getRecordResource(String name) { ResourceLocation r=super.getRecordResource(Reference.MOD_ID +":"+ recordname); return r; } @Override public void registerIcons(IIconRegister reg) { itemIcon=reg.registerIcon("record_" + recordname); } @Override public String getUnlocalizedName() { return "record."+recordname; } @Override public String getUnlocalizedName(ItemStack arg0) { return getUnlocalizedName(); } }
Here's the sounds.json :
{{"craftislife:moula": { "category": "record", "sounds": [{ "name": "craftislife:music/moula","stream": true} ]}}
Hope i can fix that.
Hi, everything is in the title of the thread. I would like to create a block that can be only break by an item called "drill".
Hope you can help me.
GreatDay.
0
nvm , found. thx for advises
0
To create a mod you need Eclipse or IntelliJIDEA , you can find a lot of tutorials on youtube to create a mod.
0
Which things don't work ?
0
Hi ! I'd like to create a keybind (already done) but with some condition :
When I press "B" , if the player has a backpack on him the keybind works, but when he don't have a backpack on him, the keybind doesn't work.
I tried this :
but the game crash..
CRASH REPORT : https://pastebin.com/BJh71kyk
Thanks for taking your time reading this.
0
Last time i posted a message a mod blocked my thread.. so ^^'
0
Hi !
I'm trying to make a new music disk to play custom songs with a jukebox, but everytime i set my disk in a jukebox, the Eclipse console says :
"[Client thread/WARN]: Unable to play unknown soundEvent: craftislife:records.moula"
Here's my class :
MusicDisc :
Here's the sounds.json :
{{"craftislife:moula": { "category": "record", "sounds": [{ "name": "craftislife:music/moula","stream": true} ]}}
Hope i can fix that.
0
Hi, everything is in the title of the thread.
I would like to create a block that can be only break by an item called "drill".
Hope you can help me.
GreatDay.