Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Eria8

Members
  • Joined

  • Last visited

Everything posted by Eria8

  1. Everything worked perfectly in a test run and when building earlier. But then I added models to my mod. First off, they DO all work perfectly when running the test client in Eclipse so I know there's nothing wrong with my coding. After adding them I run gradle build like always but I get this error. What's wrong with it?:
  2. So all those flowers are metadata for red_flower and yellow_flower is just the dandelion?
  3. Yeah, I've been there. But that doesn't help, considering there's two options there and three options in the code and none of them match.
  4. I'm making weapons out of pretty much every material you can find, one of which would be flowers. I need to specifically use Rose, Dandelion and Sunflower but all I can find in Blocks or Items is red_flower, yellow_flower and double_plant. Using those doesn't work. Considering there's no Blocks.flower or Items.flower I assume there's no metadata for them like dyes, so what am I supposed to enter to get the flowers I want to use?
  5. I just had proxy.registerRenderThings(); hidden with "//".
  6. Apparently I //commented the line that calls registerRenderThings() when I gave up on making a mob last time... Works now, thanks for reminding me.
  7. It just appears as a white box running around and I can't figure out what I'm missing. Can someone tell me what I'm missing? Main registry EntityHandler.registerMonsters(EntityCuccoo.class, "Cuccoo"); ClientProxy package com.pixelmoncore.main; import assets.pixelmoncore.models.ModelCuccoo; import com.pixelmoncore.entity.EntityCuccoo; import com.pixelmoncore.entity.RenderCuccoo; import cpw.mods.fml.client.registry.RenderingRegistry; public class ClientProxy extends ServerProxy { public void registerRenderThings() { RenderingRegistry.registerEntityRenderingHandler(EntityCuccoo.class, new RenderCuccoo(new ModelCuccoo(), 0.3F)); } } ModelCuccoo package assets.pixelmoncore.models; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; import net.minecraft.entity.Entity; import net.minecraft.util.MathHelper; public class ModelCuccoo extends ModelBase { public ModelRenderer beak; public ModelRenderer head; public ModelRenderer headthing; public ModelRenderer breast; public ModelRenderer back; public ModelRenderer tail; public ModelRenderer leftwing; public ModelRenderer rightwing; public ModelRenderer rightleg; public ModelRenderer leftleg; public ModelCuccoo() { textureWidth = 64; textureHeight = 64; beak = new ModelRenderer(this, 0, 12); beak.addBox(1F, 0F, 0F, 3, 2, 3); beak.setRotationPoint(-2.5F, 10.5F, -7F); beak.setTextureSize(64, 64); beak.mirror = true; setRotation(beak, 0F, 0F, 0F); head = new ModelRenderer(this, 0, 0); head.addBox(0F, 0F, 0F, 6, 6, 6); head.setRotationPoint(-3F, 7.5F, -5F); head.setTextureSize(64, 64); head.mirror = true; setRotation(head, 0F, 0F, 0F); headthing = new ModelRenderer(this, 0, 10); headthing.addBox(0F, 0F, 0F, 0, 9, 7); headthing.setRotationPoint(0F, 3.5F, -1.5F); headthing.setTextureSize(64, 64); headthing.mirror = true; setRotation(headthing, -0.6320364F, 0F, 0F); breast = new ModelRenderer(this, 24, 0); breast.addBox(0F, 0F, 0F, 5, 5, 5); breast.setRotationPoint(-2.5F, 13F, -1F); breast.setTextureSize(64, 64); breast.mirror = true; setRotation(breast, -0.5205006F, 0F, 0F); back = new ModelRenderer(this, 17, 10); back.addBox(0F, 0F, 0F, 6, 5, 7); back.setRotationPoint(-3F, 14.75F, 0F); back.setTextureSize(64, 64); back.mirror = true; setRotation(back, 0.1487144F, 0F, 0F); tail = new ModelRenderer(this, 1, 16); tail.addBox(0F, 0F, 0F, 0, 10, 10); tail.setRotationPoint(0F, 6F, 6F); tail.setTextureSize(64, 64); tail.mirror = true; setRotation(tail, -0.2602503F, 0F, 0F); leftwing = new ModelRenderer(this, 21, 22); leftwing.addBox(0F, 0F, 0F, 1, 5, 6); leftwing.setRotationPoint(-3F, 14.5F, 0F); leftwing.setTextureSize(64, 64); leftwing.mirror = true; setRotation(leftwing, -0.1487144F, -0.1115358F, 0.4089647F); rightwing = new ModelRenderer(this, 21, 22); rightwing.addBox(0F, 0F, 0F, 1, 5, 6); rightwing.setRotationPoint(2F, 14.5F, 0F); rightwing.setTextureSize(64, 64); rightwing.mirror = true; setRotation(rightwing, -0.1487195F, 0.111544F, -0.4089656F); rightleg = new ModelRenderer(this, 0, 0); rightleg.addBox(0F, 0F, 0F, 1, 5, 1); rightleg.setRotationPoint(0.7F, 19F, 3F); rightleg.setTextureSize(64, 64); rightleg.mirror = true; setRotation(rightleg, 0F, 0F, 0F); leftleg = new ModelRenderer(this, 0, 0); leftleg.addBox(0F, 0F, 0F, 1, 5, 1); leftleg.setRotationPoint(-1.7F, 19F, 3F); leftleg.setTextureSize(64, 64); leftleg.mirror = true; setRotation(leftleg, 0F, 0F, 0F); } public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { super.render(entity, f, f1, f2, f3, f4, f5); setRotationAngles(f, f1, f2, f3, f4, f5, entity); beak.render(f5); head.render(f5); headthing.render(f5); breast.render(f5); back.render(f5); tail.render(f5); leftwing.render(f5); rightwing.render(f5); rightleg.render(f5); leftleg.render(f5); } private void setRotation(ModelRenderer model, float x, float y, float z) { model.rotateAngleX = x; model.rotateAngleY = y; model.rotateAngleZ = z; } public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity) { super.setRotationAngles(f, f1, f2, f3, f4, f5, entity); this.head.rotateAngleX = f4 / (180F / (float)Math.PI); this.head.rotateAngleY = f3 / (180F / (float)Math.PI); this.beak.rotateAngleX = this.head.rotateAngleX; this.beak.rotateAngleY = this.head.rotateAngleY; this.headthing.rotateAngleX = this.head.rotateAngleX; this.headthing.rotateAngleY = this.head.rotateAngleY; this.back.rotateAngleX = ((float)Math.PI / 2F); this.breast.rotateAngleX = this.back.rotateAngleX; this.breast.rotateAngleY = this.back.rotateAngleY; this.rightleg.rotateAngleX = MathHelper.cos(f * 0.6662F) * 1.4F * f1; this.leftleg.rotateAngleX = MathHelper.cos(f * 0.6662F + (float)Math.PI) * 1.4F * f1; this.rightwing.rotateAngleZ = f5; this.leftwing.rotateAngleZ = -f5; } } RenderCucco package com.pixelmoncore.entity; import net.minecraft.client.model.ModelBase; import net.minecraft.client.renderer.entity.RenderLiving; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLiving; import net.minecraft.util.ResourceLocation; import assets.pixelmoncore.models.ModelCuccoo; public class RenderCuccoo extends RenderLiving { private static final ResourceLocation texture = new ResourceLocation("pixelmoncore/textures/models/entity/cuccoo.png"); protected ModelCuccoo modelEntity; public RenderCuccoo(ModelBase par1ModelBase, float par2) { super(par1ModelBase, par2); modelEntity = ((ModelCuccoo) mainModel); } public void renderCuccoo(EntityCuccoo entity, double x, double y, double z, float u, float v) { super.doRender(entity, x, y, z, u, v); } public void doRenderLiving(EntityLiving entityLiving, double x, double y, double z, float u, float v) { renderCuccoo((EntityCuccoo)entityLiving, x, y, z, u, v); } public void doRender(Entity entity, double x, double y, double z, float u, float v) { renderCuccoo((EntityCuccoo)entity, x, y, z, u, v); } @Override protected ResourceLocation getEntityTexture(Entity var1) { return texture; } } EntityHandler package com.pixelmoncore.main; import java.util.Random; import net.minecraft.entity.EntityList; import net.minecraft.entity.EnumCreatureType; import net.minecraft.world.biome.BiomeGenBase; import cpw.mods.fml.common.registry.EntityRegistry; public class EntityHandler { public static void registerMonsters(Class entityClass, String name) { int entityId = EntityRegistry.findGlobalUniqueEntityId(); long x = name.hashCode(); Random random = new Random(x); int mainColour = random.nextInt() * 16777215; int secondColour = random.nextInt() * 16777215; EntityRegistry.registerGlobalEntityID(entityClass, name, entityId); EntityRegistry.addSpawn(entityClass, 50, 2, 4, EnumCreatureType.ambient, BiomeGenBase.desertHills, BiomeGenBase.desert, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.forest, BiomeGenBase.hell, BiomeGenBase.mesa, BiomeGenBase.mesaPlateau, BiomeGenBase.savanna, BiomeGenBase.stoneBeach); EntityRegistry.registerModEntity(entityClass, name, entityId, Main.instance, 32, 1, true); EntityList.entityEggs.put(Integer.valueOf(entityId), new EntityList.EntityEggInfo(entityId, mainColour, secondColour)); } }
  8. If this is what you mean, Rival = new com.pixelmoncore.music.Rival("pixelmoncore:rival").setUnlocalizedName("discRival").setCreativeTab(tabPixelmonCoreMisc).setTextureName("pixelmoncore:record"); It left me this time with: [16:18:30] [Client thread/WARN]: Unable to play unknown soundEvent: records.pixelmoncore:rival
  9. Whenever I test Minecraft and put the disc in a jukebox, the console log says: [13:22:44] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:records.rival In my main class I have: public static Item Rival = new com.pixelmoncore.music.Rival("rival").setUnlocalizedName("discRival").setCreativeTab(tabPixelmonCoreMisc).setTextureName("pixelmoncore:record"); and the record class is: public class Rival extends ItemRecord { public Rival(String recordName) { super(recordName); } @SideOnly(Side.CLIENT) public String getRecordTitle() { return "Battle - Rival"; } } and in the json there's... { "rival": {"category": "master", "sounds": [{"name": "rival", "stream": true}]} } It's probably something stupid I'm missing, but I can't figure out what I'm doing wrong..
  10. Why wouldn't I? It's kind of annoying that every time I add a new item it changes the ID of every single other item. Won't that cause problems?
  11. I need something to make them stop changing every time I run the mod...
  12. I just noticed whenever I test my mod the console log tells me that all my item and block IDs are mismatched and the mod IDs all seem to come directly after Vanilla IDs: [00:15:05] [server thread/INFO] [FML]: Found item id mismatch starlight:chaosSword : 4112 4188 [00:15:05] [server thread/INFO] [FML]: Found item id mismatch starlight:wall_white : 185 186 [00:15:05] [server thread/INFO] [FML]: Found item id mismatch starlight:ChaoticHelmet: 4177 4165 [00:15:05] [server thread/INFO] [FML]: Found item id mismatch starlight:meteorite : 4139 4127 ...and it keeps going and going for over a hundred lines with every item/block. This is all the coding for an example item to show what I assumed would set my IDs: In the main class there's public static Item chaosSword; public final int chaosSwordID = 10020; and @EventHandler public void preInit(FMLPreInitializationEvent event) { chaosSword = new com.starlight.weapons.chaosSword(chaosSwordID, ChaosSword).setUnlocalizedName("chaosSword").setTextureName("starlight:chaosSword"); GameRegistry.registerItem(chaosSword, "chaosSword"); } And in the item's class package com.starlight.weapons; import net.minecraft.item.ItemSword; public class chaosSword extends ItemSword { public chaosSword (int id, ToolMaterial ChaosSword) { super(ChaosSword); this.setMaxStackSize(1); this.setCreativeTab(tabStarlightWeapons); } } So can someone tell me what I'm doing wrong?
  13. I'm trying to make an enchanted weapon craft-able but when I put the items in the crafting table it crashes. Crash log: http://pastebin.com/RsqXrRUr Defining it public static Item solarSword; public static ItemStack solarSword1; Enchanting it ItemStack solarSword = new ItemStack(StarlightMain.solarSword); solarSword.addEnchantment(Enchantment.fireAspect, 2); Making the recipe GameRegistry.addRecipe(StarlightMain.solarSword1, new Object[]{" A", " A ", "B ", 'A', StarlightMain.itemSunstone, 'B', StarlightMain.moonRod}); What am I doing wrong?
  14. Doing that makes me crash when I place it. http://pastebin.com/RMSpg5ai
  15. I'm trying to make a pane to go along with my glass block but the top half of the texture doesn't show up as shown below: The console log from the start of the error: http://pastebin.com/qNyvUFm5 This is the code I'm using: package com.starlight.blocks; import java.util.List; import com.starlight.main.StarlightMain; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.block.BlockPane; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemDye; import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; public class volcanicGlassPane extends BlockPane { private static final IIcon[] volcanicGlass_1 = new IIcon[16]; private static final IIcon[] volcanicGlass_2 = new IIcon[16]; public volcanicGlassPane() { super("volcanicGlass", "volcanicGlass_sidep", Material.glass, false); this.setStepSound(soundTypeGlass); this.setBlockTextureName("starlight:volcanicGlass"); this.setLightOpacity(5); } @SideOnly(Side.CLIENT) public boolean isOpaqueCube() { return false; } @SideOnly(Side.CLIENT) public int getRenderBlockPass() { return 1; } @SideOnly(Side.CLIENT) public IIcon func_149735_b(int p_149735_1_, int p_149735_2_) { return volcanicGlass_1[p_149735_2_ % volcanicGlass_2.length]; } @SideOnly(Side.CLIENT) public IIcon func_150104_b(int p_150104_1_) { return volcanicGlass_2[~p_150104_1_ & 15]; } @SideOnly(Side.CLIENT) public IIcon getIcon(int p_149691_1_, int p_149691_2_) { return this.func_149735_b(p_149691_1_, ~p_149691_2_ & 15); } @SideOnly(Side.CLIENT) public void registerBlockIcons(IIconRegister p_149651_1_) { super.registerBlockIcons(p_149651_1_); for (int i = 0; i < volcanicGlass_1.length; ++i) { volcanicGlass_1[i] = p_149651_1_.registerIcon("starlight:volcanicGlass" + ""); volcanicGlass_2[i] = p_149651_1_.registerIcon("starlight:volcanicGlass" + "_side"); } } }
  16. For what specifically? It's kind of a mess.
  17. Everything was working perfectly. I took a break to get dinner, came back, added two new weapons, and crash. I deleted the new weapons and hid code relating to them in comments but I still get the same error when trying to test it and I can't figure out for the life of me what the problem is. Can anyone shed some light for me? Crash report: ---- Minecraft Crash Report ---- // Don't do that. Time: 31/03/14 21:42 Description: Initializing game java.lang.NullPointerException: Initializing game at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:234) at cpw.mods.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:219) at com.mcp.minecraftp.minecraftp.init(minecraftp.java:258) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:209) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:673) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:267) at net.minecraft.client.Minecraft.startGame(Minecraft.java:559) at net.minecraft.client.Minecraft.run(Minecraft.java:853) at net.minecraft.client.main.Main.main(Main.java:103) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:234) at cpw.mods.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:219) at com.mcp.minecraftp.minecraftp.init(minecraftp.java:258) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:209) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:673) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:267) at net.minecraft.client.Minecraft.startGame(Minecraft.java:559) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:853) at net.minecraft.client.main.Main.main(Main.java:103) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) -- System Details -- Details: Minecraft Version: 1.7.2 Operating System: Windows 8 (amd64) version 6.2 Java Version: 1.7.0_51, Oracle Corporation Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 245250624 bytes (233 MB) / 330825728 bytes (315 MB) up to 905969664 bytes (864 MB) JVM Flags: 0 total; AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.01-pre FML v7.2.129.1047 Minecraft Forge 10.12.0.1047 4 mods loaded, 4 mods active mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized FML{7.2.129.1047} [Forge Mod Loader] (forgeBin-1.7.2-10.12.0.1047.jar) Unloaded->Constructed->Pre-initialized->Initialized Forge{10.12.0.1047} [Minecraft Forge] (forgeBin-1.7.2-10.12.0.1047.jar) Unloaded->Constructed->Pre-initialized->Initialized Minecraft Plus{0.1} [Minecraft Plus] (bin) Unloaded->Constructed->Pre-initialized->Errored Launched Version: 1.7 LWJGL: 2.9.0 OpenGL: Intel® HD Graphics GL version 2.1.0 - Build 8.15.10.2858, Intel Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: [] Current Language: English (US) Profiler Position: N/A (disabled) Vec3 Pool Size: ~~ERROR~~ NullPointerException: null Anisotropic Filtering: Off (1) It looks like errors are coming from crafting, but I've successfully run the mod many times since the last time I added or changed anything there so I've no idea where the problem is. Any help would be fantastic.

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.