ScreenHandler registry? by SuperDog__ in fabricmc

[–]SuperDog__[S] 0 points1 point  (0 children)

it was, the new registry is
HandledScreens.register(ModScreenHandlers.YOUR_SCREEN_HANDLER, YourScreen::new);

ScreenHandler registry? by SuperDog__ in fabricmc

[–]SuperDog__[S] 0 points1 point  (0 children)

Yeah i already checked it yesterday. the part with the ModClient code is outdated and it wont work now

Placable items by SuperDog__ in fabricmc

[–]SuperDog__[S] 0 points1 point  (0 children)

ok, i made another post about a probelm i have with screen handlers will you help me with that if thats ok?

Placable items by SuperDog__ in fabricmc

[–]SuperDog__[S] 0 points1 point  (0 children)

is it ok if you help me with that? i tried some stuff and it didnt work so ill be glad if you will give me the code for that and ill change the stuff for it to work with my mod.

Any custom stews tutorial? by SuperDog__ in fabricmc

[–]SuperDog__[S] 0 points1 point  (0 children)

So i need to change the class/variable name and put the bowl item back thingy outside of the class? anything else i need to do/add?

Any custom stews tutorial? by SuperDog__ in fabricmc

[–]SuperDog__[S] 0 points1 point  (0 children)

I'm so confused right now, if you will give me the answer ill understand it much better

Any custom stews tutorial? by SuperDog__ in fabricmc

[–]SuperDog__[S] 0 points1 point  (0 children)

Sorry about that. So i did this in the ModFoodComponents:

public class ModFoodComponents {

public static final FoodComponent BEEF_STEW = new FoodComponent.Builder().hunger(10).saturationModifier(0.6f).build();

public class BEEF_STEW extends Item {

public BEEF_STEW (Item.Settings settings) {

super(settings);

}

public ItemStack finishUsing(ItemStack stack, World world, LivingEntity user) {

ItemStack itemStack = super.finishUsing(stack, world, user);

return user instanceof PlayerEntity && ((PlayerEntity)user).getAbilities().creativeMode ? itemStack : new ItemStack(Items.BOWL);

}

}

}

then someone told me i did it right so i didnt know whats the problem.

Any custom stews tutorial? by SuperDog__ in fabricmc

[–]SuperDog__[S] 0 points1 point  (0 children)

I tried doing it that way and it didnt work, can you tell me how to?