Skip to content

Commit

Permalink
yeah i quite
Browse files Browse the repository at this point in the history
  • Loading branch information
RealYusufIsmail committed Nov 19, 2023
1 parent 1953c03 commit 9177196
Show file tree
Hide file tree
Showing 15 changed files with 108 additions and 112 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class ArmourAndToolsMod {
CreativeModeTabInit.CREATIVE_MODE_TAB.register(bus)
PotionsInit.POTION.register(bus)
MobEffectsInit.MOB_EFFECTS.register(bus)
DimensionsInit.register()

// Register ourselves for server and other game events we are interested in
// Register the data generators
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* Copyright 2023 RealYusufIsmail.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
*
* you may not use this file except in compliance with the License.
*
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.realyusufismail.armourandtoolsmod.core.init

import io.github.realyusufismail.armourandtoolsmod.ArmourAndToolsMod
import net.minecraft.world.level.dimension.DimensionType
import net.minecraft.core.registries.Registries
import net.minecraft.resources.ResourceKey
import net.minecraft.world.level.Level

object DimensionsInit {
val CHRON_REAL: ResourceKey<Level> =
ResourceKey.create(Registries.DIMENSION, ArmourAndToolsMod.getModIdAndName("chrono_realm"))
val CHRON_REAL_TYPE: ResourceKey<DimensionType> =
ResourceKey.create(Registries.DIMENSION_TYPE, CHRON_REAL.location())

fun register() {
ArmourAndToolsMod.logger.info("Registering dimensions for ${ArmourAndToolsMod.MOD_ID}")
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"type": "armourandtoolsmod:chrono_realm",
"generator": {
"type": "minecraft:noise",
"settings": "minecraft:overworld",
"biome_source": {
"type": "minecraft:fixed",
"biome": "minecraft:plains"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"ambient_light": 0.0,
"ultrawarm": false,
"natural": false,
"piglin_safe": true,
"respawn_anchor_works": true,
"bed_works": true,
"coordinate_scale": 0,
"effects": "minecraft:the_end",
"has_ceiling": true,
"has_raids": false,
"has_skylight": true,
"height": 256.0,
"infiniburn": "minecraft:infiniburn_overworld",
"logical_height": 0.0,
"min_y": -64.0,
"monster_spawn_block_light_limit": 0,
"has_ceiling": true,
"coordinate_scale": 1,
"ambient_light": 0.1,
"logical_height": 128,
"effects": "minecraft:the_end",
"infiniburn": "#minecraft:infiniburn_overworld",
"min_y": -64,
"height": 256,
"monster_spawn_light_level": {},
"natural": false,
"piglin_safe": true,
"respawn_anchor_works": true,
"ultrawarm": false
"monster_spawn_block_light_limit": 0
}
2 changes: 1 addition & 1 deletion neoforge/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ neoForgeVersion = 20.2.57-beta
kotlinForForgeVersion = 4.6.2
logbackVersion = 1.4.11
junitVersion = 5.10.0
coreVersion = 1.20.2-1.0.9
coreVersion = 1.20.2-1.1.1
jeiVersion = 16.0.0.28
lombokVersion = 1.18.30
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// 1.20.2 2023-11-18T19:31:56.003037 Dimension Type Provider for temporalsmith
3a4787baf81ef455caaf6af44b8c478f7f2fc440 data/temporalsmith/dimension_type/chrono_realm.json
// 1.20.2 2023-11-19T15:45:23.96022 Dimension Type Provider for temporalsmith
00aa7a78568fbd54c672341070547f0bd39fdbad data/temporalsmith/dimension_type/chrono_realm.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/
package io.github.realyusufismail.temporalsmith

import io.github.realyusufismail.realyusufismailcore.RealYusufIsmailCore.logger
import io.github.realyusufismail.temporalsmith.TemporalSmith.TemporalSmith.MOD_ID
import io.github.realyusufismail.temporalsmith.client.ClientEvents
import io.github.realyusufismail.temporalsmith.client.TemporalSmithShieldItemRendererProvider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import net.minecraft.client.gui.screens.MenuScreens
import net.minecraft.client.model.geom.ModelLayerLocation
import net.minecraft.client.multiplayer.ClientLevel
import net.minecraft.client.renderer.item.ItemProperties
import net.minecraft.core.registries.Registries
import net.minecraft.resources.ResourceLocation
import net.minecraft.server.level.ServerPlayer
import net.minecraft.sounds.SoundEvents
Expand All @@ -46,6 +47,7 @@ import net.neoforged.neoforge.client.event.EntityRenderersEvent
import net.neoforged.neoforge.client.event.InputEvent
import net.neoforged.neoforge.client.event.RegisterKeyMappingsEvent
import net.neoforged.neoforge.event.entity.living.LivingDeathEvent
import net.neoforged.neoforge.registries.RegisterEvent

object ClientEvents {
val MjolnirLayer = ModelLayerLocation(TemporalSmith.getModIdAndName("mjolnir"), "mjolnir")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,24 @@ package io.github.realyusufismail.temporalsmith.core.init

import io.github.realyusufismail.temporalsmith.TemporalSmith
import net.minecraft.core.registries.Registries
import net.minecraft.data.worldgen.BootstapContext
import net.minecraft.resources.ResourceKey
import net.minecraft.resources.ResourceLocation
import net.minecraft.util.RandomSource
import net.minecraft.util.valueproviders.IntProvider
import net.minecraft.util.valueproviders.IntProviderType
import net.minecraft.world.level.Level
import net.minecraft.world.level.dimension.DimensionType
import net.neoforged.neoforge.registries.ForgeRegistries
import java.util.*

object DimensionsInit {
val chronoRealmKey: ResourceKey<Level> =
val CHRON_REAL: ResourceKey<Level> =
ResourceKey.create(Registries.DIMENSION, TemporalSmith.getModIdAndName("chrono_realm"))
val chronoRealmype: ResourceKey<DimensionType> =
ResourceKey.create(Registries.DIMENSION_TYPE, chronoRealmKey.registry())
val CHRON_REAL_TYPE: ResourceKey<DimensionType> =
ResourceKey.create(Registries.DIMENSION_TYPE, TemporalSmith.getModIdAndName("chrono_realm"))

fun register() {
TemporalSmith.logger.info("Registering dimensions for ${TemporalSmith.MOD_ID}")
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ package io.github.realyusufismail.temporalsmith.datagen

import io.github.realyusufismail.temporalsmith.TemporalSmith.TemporalSmith.logger
import io.github.realyusufismail.temporalsmith.datagen.advancment.ModAdvancementProvider
import io.github.realyusufismail.temporalsmith.datagen.dimension.ModDimensionProvider
import io.github.realyusufismail.temporalsmith.datagen.dimension.ModDimensionTypeProvider
import io.github.realyusufismail.temporalsmith.datagen.lang.ModEnLangProvider
import io.github.realyusufismail.temporalsmith.datagen.loot.ModLootTables
import io.github.realyusufismail.temporalsmith.datagen.recipe.MainModRecipeProvider
Expand Down Expand Up @@ -70,8 +68,6 @@ object DataGenerators {
ArmourAndTollsModSpriteSourceProvider(gen.packOutput, existingFileHelper, lookup))
gen.addProvider(
true, ModAdvancementProvider(gen.packOutput, lookup, existingFileHelper))
gen.addProvider(true, ModDimensionTypeProvider(gen))
gen.addProvider(true, ModDimensionProvider(gen.packOutput))
gen.addProvider(true, PackMetadataGenerator(gen.packOutput))
.add(
PackMetadataSection.TYPE,
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package io.github.realyusufismail.temporalsmith.datagen.world

import io.github.realyusufismail.temporalsmith.TemporalSmith.TemporalSmith.MOD_ID
import io.github.realyusufismail.temporalsmith.core.init.DimensionsInit
import io.github.realyusufismail.temporalsmith.worldgen.ModConfiguredFeatures
import io.github.realyusufismail.temporalsmith.worldgen.ModPlacedFeatures
import java.util.concurrent.CompletableFuture
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"type": "temporalsmith:chrono_realm",
"generator": {
"type": "minecraft:noise",
"settings": "minecraft:overworld",
"biome_source": {
"type": "minecraft:fixed",
"biome": "minecraft:plains"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"ultrawarm": false,
"natural": false,
"piglin_safe": true,
"respawn_anchor_works": true,
"bed_works": true,
"has_raids": false,
"has_skylight": true,
"has_ceiling": true,
"coordinate_scale": 1,
"ambient_light": 0.1,
"logical_height": 128,
"infiniburn": "#minecraft:infiniburn_overworld",
"min_y": -64,
"height": 256,
"monster_spawn_light_level": {},
"monster_spawn_block_light_limit": 0
}

0 comments on commit 9177196

Please sign in to comment.